Just a shot in the dark here.
The first argument you're sending into the SEEK() function is the value
sought. You should be sending in a value of .T. but you're sending in the
DELETED() status of the current record in the currently-selected workarea.
Try:
? SEEK( .T., 'MyTable', 'DelRecs' )
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of John Weller
Sent: Wednesday, February 14, 2007 16:06
To: [EMAIL PROTECTED]
Subject: Index on Deleted()
I have an index on DELETED() in most of my tables. To check if a table
needs packing I look for a deleted record using this index. When I look at
a table with no deleted records I'm finding that the line:
LOCATE FOR DELETED()
?FOUND()
returns False, whereas
? SEEK(DELETED(), 'MyTable', 'DelRecs')
is returning True - which is obviously wrong! This happens on all of the
tables which do not have deleted records. Any suggestions as to what I am
doing wrong? (I'm going to change the code to use LOCATE rather than SEEK
as an interim measure).
TIA
John Weller
01380 723235
07976 393631
[excessive quoting removed by server]
___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.