Assuming you are trying to save and restore data from the Editor window and not the about window (original post is not clear on this point), the statement: save$ = EDIT$(_cEdit) would only work if the current output window is the Editor window. There is no evidence in the code indicating this is true. I'm reluctant to contribute to a "solution" that ignores the bug (fields clearing) and works around it by saving/restoring. I would suggest looking for the cause of the original edit field clearing problem since standard FB edit fields are self-maintaining. Brian S. On Dec 26, 2006, at 7:16 PM, Brian Heibert wrote: > I have a problem > Whenever the about box displays my edit field's contents get cleared > I tried saving the contents using the code below but it is not working > > Brian > > local fn DoDialog > dim as long evnt, id > > evnt = dialog(0) > id = dialog(evnt) > > select case( evnt ) > case _wndClose > select( id ) > long if id = _Editor > window close #_Editor > end if > long if id = _aboutWnd > dim save$ > save$ = EDIT$(_cEdit) > window close #_aboutWnd > //Edit Field #_cEdit, save$ > INCLUDE "NewDocument.incl" > FN BuildMain > EDIT FIELD #_cEdit,save$ > > end if > > window close id > end select > case _btnClick > select( id ) > case _runBtn > INCLUDE "Interpreter.incl" > FN ParseEFLines(_cEdit) > case _NewBtn > Include "NewDocument.incl" > DEF FN InitNewDocument > FN InitNewDocument > case _CompileBtn > beep > end select > end select > > end fn > > -- > To unsubscribe, send ANY message to: futurebasic- > unsubscribe@... >