Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check if a delete command worked
Message
De
03/07/2003 08:32:11
 
 
À
03/07/2003 03:15:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00806075
Message ID:
00806493
Vues:
23
Viv, thanks for pointing that out. I made an assumption that I should not have made. Issuing a Delete() does not have to mean the record it was issued to was alive at the time.

And, as you reminded me, issuing 'Delete()' on a live record will set the deleted flag on GetFldState(-1) to '2', but 'Recall' will not set it back to '1'. Only TableRevert() will do that.

Alan

>Hi Alan,
>
>>
>Claude, look up GetFldState() in the help. It can tell you if a record has been deleted before you do the TableUpdate()
><
>
>Not strictly true. GetFldState() can tell you if the deleted status of a record *has changed*. Only DELETED() will tell you it's current state.
>
>Regards,
>Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform