Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Field data save problem in VFP 5.0
Message
From
15/12/1996 11:46:48
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00014990
Message ID:
00015153
Views:
34
>Actually it took both of you guys ideas to work. Either one by themself did not work. Here is what worked for me: I placed the following code in the click method of the Save button:
>
>IF PEMSTATUS(_Screen.ActiveForm.ActiveControl, 'Value', 5)
> _Screen.ActiveForm.ActiveControl.Value = _Screen.ActiveForm.ActiveControl.Value
>ENDIF

Ok, I've tested it and it does not work.

When I do my save, I've put some WAIT WINDOW and it goes into the condition. So, that part is working, but the fact to reassign the value to itself does not take what's in the buffer.

For my test, I used one of my form which only contains a grid with one field. I change the value of the field without, moving outside of the field, and after the save the old value was coming back.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform