Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reverting an Add
Message
From
01/02/1999 16:09:19
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00182659
Message ID:
00182718
Views:
8
>>>>When a user does a TABLEREVERT(), is there some way of knowing if adding that record was reverted? ie: They added a record and reverted before saving, so the effect is of deleting the record.
>>>>
>>>>Thanks,
>>>>
>>>>-Michelle
>>>
>>>Right before you issue your TABLEREVERT() couldn't you check
>>>

>>>
>>>IF GETFLDSTATE() = '4' and DELETED()
>>> SomeCode
>>>ENIDF
>>>=TABLEREVERT()
>>
>>
>>Make that
>>IF '4'$GETFLDSTATE(-1)AND DELETED()
>> SomeCode
>>ENIDF
>>=TABLEREVERT()
>
>I might be able to use GETFLDSTATE(), depending on if TABLEREVERT() actually changes it or just flushed the record.
>
>Thanks,
>
>-Michelle


I beleive when you do a TableRevert the Buffer is complete wiped out and a fresh one is load from the values on the disk, making it impossible to test what you seem to be after.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform