Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I SELECT from a cursor into itself
Message
From
03/12/2007 02:48:51
 
 
To
02/12/2007 23:03:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01272403
Message ID:
01272746
Views:
16
In processes taking many steps to prune data I usually have a "delreason" field: if empty, the record is not deleted,
if it gets deleted I fill it with a string making it easy to identify the process step which deleted.

Easy to track even afterwards and quite fast: deletion writes more than the deleted flag, but not much,
finding bugs is speeded up tremendously.

>Thanks for the warnings about debugging when SELECTing a cursor back into itself.
>My case is rather simple, as I'm simply pruning the same cursor (one or more times).
>In retrospect, I could have accumulated the selection criteria (which are handled thru macro substitution anyway) and done them all at once. But, I think it reads a little better the way that it is.

>
>>>Can I do a SELECT phrase from a cursor where the INTO goes back into the same named cursor?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform