Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Locate on just emptied data set
Thu, Aug 9 2007 1:34 AMPermanent Link

"Royke"
I have a tEDBTable with (say) two records, both with field 'somefield'
having value 'somevalue'. In this loop

while Table1.Locate('somefield', somevalue, []) do
 Table1.Delete;

the program goes to the Delete three times, resulting in a 'Cannot perform
this operation on an empty data set.' Should I add some Refresh (or so)
after the Delete (or in the AfterDelete event)?

(If the table is empty to begin with, the Locate comes back False. )

RJ

Thu, Aug 9 2007 2:57 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< the program goes to the Delete three times, resulting in a 'Cannot
perform this operation on an empty data set.'  >>

We're aware of this issue and a fix will be available shortly in the next
build.   It only occurs with un-optimized Locates that don't use indexes.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image