Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursorsetprop() +tablerevert()
Message
 
To
29/12/1997 13:45:15
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00067244
Message ID:
00068314
Views:
33
>>>>>>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!
>
>Timothy,
>
>When you call getfldstate with a -1 as the parameter what you get is a character string with the first digit representing the table status followed by one digit for the status of each field.
>
>Where a 1 = No Change
>
> 2 = The field was edited or the deletion status of the record was changed.
>
> 3 = A record was appended but the field was not edited and the deletion status was not changed.
>
> 4 = A record was appended and the field was edited or the deletion status of the record was changed.
>
>Mark A. Struck

this seems to make sense. There is a double standard for records that are appended as opposed to existing records. Looks like I'll have to increase my code on the "Save" cmdbutton to check for this!!!!!
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Previous
Reply
Map
View

Click here to load this message in the networking platform