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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query to return only records marked for deletion

Status
Not open for further replies.

mp9

Programmer
Sep 27, 2002
1,379
GB
This is no doubt obvious and easy, so apologies in advance.

I'm using VFP5 and need to query a table and ONLY return those records marked for deletion. How can I do this?

Thanks.
 
How about using that index in a scan-loop?

Code:
set deleted off
select 0
use myTable in 0 order xDeleted && or whatever you call the index tag
set key to .T.
scan
   ...
endscan

* or a simple
scan for deleted()
...
endscan

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top