Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check if a delete command worked
Message
De
03/07/2003 14:52:46
 
 
À
03/07/2003 14:21:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00806075
Message ID:
00806683
Vues:
20
>I don't see anything wrong with your code, but not knowing what the Do Loop is, it's hard to know if it's the most efficient way of handling it. I presume you are not looping through the entire table doing this, so as far as I can tell, it looks ok.
>

No, do loop only looks at selected records.

>Alan
>
>>Thanks to every one who replied. I think that since I only need to know if a record is marked for deletion the simplest solution is (code is in a do loop)
>>
>>DELETE NEXT 1 FOR pireq.creqno = lcReqNo IN pireq
>>llDeleted = DELETED('pireq')
>>IF NOT llDeleted
>>   llOk = .F.
>>   EXIT
>>ENDIF
>>
>>Code that checks to see status of LLOK.
>>
>>Please point out any problems with this approach.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform