Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursorsetprop() +tablerevert()
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00067244
Message ID:
00067783
Views:
29
>>>What I want to check for, is if the user started to edit some fields before I do the tablerevert() on a newly appended record.
>>Timothy,
>>
>>You need to check out GetFldState(-1) to find out what has been changed or edited by the user on the new record.
>
>Well the prob I'm having is this. A new record is appended with the
>=cursorsetprop("buffering",2), a field is automatically replaced with a control # and then, for testing, I click cmdbutton 'Quit' which has this code in it: ?GETFLDSTATE(-1)
>and the result is '1111111111111111111111' ALL ONES!
>This cannot be right!

Tim, you are using row buffering, so if you move the cursor any changes will be saved automatically (built into VFP). Check to see if at some point you are moving the record pointer from the appended record. Have you followed the GetFldState(-1) with debug from Append Blank until it changes back to all '111'? That would be my first test....

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform