Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

deleted records 3

Status
Not open for further replies.

RGoldthorpe

Technical User
Aug 10, 2001
83
GB
What is the code I need to use to tell if a record is flagged for deletion.

All help gratefully received

ThanX

Rach X-)
 
HI Rachel,

To delete DELETE
To recall it, RECALL
To permanently remove the deleted records... PACK..but this command can be used only in an exclusive mode..
SO

myStatus=SET("EXCLUSIVE")
SET EXCLUSIVE ON
USE myTable
PACK
SET EXCLUSIVE TO &myStatus

You may have to add code to catch other users, who might be already in. (Beware !)

Hope this helps you. :) ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK :)
 
You can use deleted() function :

use yourdatabase
scan
if deleted()
wait window 'Record flagged for delete! '+str(recno(),5) timeout 1
endif
endscan
use


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top