Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exact and deleted recs - did everybody know this but me?
Message
From
25/07/2006 11:41:33
Thomas Ganss (Online)
Main Trend
Frankfurt, Germany
 
 
To
25/07/2006 08:29:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01139176
Message ID:
01139749
Views:
12
>Looks like this is going to be the best option. I just discovered something more about this whole process which means I can't use my own method in a consistent way anyway.
>
>This is the problem.
>
>With SET DELETED OFF:
>
>
SELECT id, firstname, lastname FROM tablename INTO CURSOR crsTemp
>Will return deleted records with the deleted flag still set. However,
>
>
SELECT id, UPPER(firstname), UPPER(lastname) FROM tablename INTO CURSOR crsTemp
>Will wipe out the deleted flag.
>
>UPPER() is just for illustrative purposes. Any function, or adding < something as field > in the select will wipe out the deleted flag. In some instances in this code, functions are used. So, it looks like your method is about the only way I can do what I need to.

This makes (some) sense: the old record is/was deleted, but when any function was run it is a different/new record. If it is fast enough for your needs, great - most tricks to speed up one part can slow down other parts. Not that thinking about them is not fun <g>...

regards

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform