Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recycling deleted records?
Message
 
To
12/05/1999 17:47:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00218107
Message ID:
00218253
Views:
24
David,

Buffering does nothing to thwart reuse of deleted records. TableUpdate() does not always create a new record. For example;
* Add routine
LOCAL lcAlias, liKey
lcAlias = ALIAS()
SELECT TheTable
LOCATE FOR DELETED
IF FOUND()
   liKey = PrimaryKey
   SCATTER MEMVAR MEMO BLANK
   GATHER MEMVAR MEMO
   REPLACE PrimaryKey WITH liKey
ELSE
   APPEND BLANK
ENDIF
IF NOT EMPTY( lcAlias )
   SELECT ( lcAlias )
ELSE
   SELECT 0
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform