Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reverting an Add
Message
 
 
À
01/02/1999 16:09:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00182659
Message ID:
00182719
Vues:
11
>>>>>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.

Hmmm... That's no good. I'll have to do some experimenting.

Thanks,

-Michelle
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform