Yes, you are right Jose. The following code helps resolve this problem. Sorry for the sloppiness :-)
oScreenObj=_SCREEN.ActiveForm.ActiveControl
IF INLIST(UPPER(oScreenObj.Baseclass),"TEXTBOX","COMBOBOX","EDITBOX")
IF PEMSTATUS(oScreenObj,"ControlSource",5)
IF !EMPTY(oScreenObj.ControlSource)
REPLACE (oScreenObj.ControlSource) WITH (oScreenObj.Value)
ENDIF
ENDIF
ENDIF
Please note that you may have to twiddle with this code to accurately trap controls within other form containers, like pageframes and containers.
>>I am programming an application using the FoxPRO 6.0 Application Wizard and its classes.
>>
>>Whenever I enter some changes in a field, leave the cursor in that field and then push the "Next Record" button in the framework provided toolbar, then the "Previous Button", the change in the field is GONE.
>>
>>Am I doing something wrong, or is this some known error in the VFP 6.0 framework?
>>
>>TIA!
>>
>>hs
>
>Hermann,
>
>If you move the cursor to another field, changes are written right? The behavior you see is nothing new and there since VFP 3.0 Since the toolbar never receives the focus, the focus remains always on your changed field and VFP thinks it has not changed. That's one of the things that makes the difference between frameworks and ... frameworks.
>
>Jose
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05