Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check if a delete command worked
Message
From
03/07/2003 14:52:46
 
 
To
03/07/2003 14:21:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00806075
Message ID:
00806683
Views:
19
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform