Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Input disappears from field
Message
From
19/11/1998 11:09:41
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00159119
Message ID:
00159305
Views:
27
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
Previous
Reply
Map
View

Click here to load this message in the networking platform