Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 7 of 7 total
Thread The Lookup method scrolls
Tue, Mar 31 2009 1:43 AMPermanent Link

"Roy Jonker"
It seems that the TTable Lookup method scrolls the table.

Delphi Help says: "Description: Call Lookup to search for a record in the
dataset in which specified fields contain specified values and return other
field values from the found record. Unlike other dataset search methods,
Lookup performs its search without moving the record pointer of the dataset.
This is useful when doing data validation on a record's data while the
record is still in edit or insert mode."

Lookup method really belongs to TBDEDataset. Is the implementation different
for EDB?

Royke
Thu, Apr 2 2009 7:55 AMPermanent Link

Fernando Dias

Team Elevate Team Elevate

Roy,

> It seems that the TTable Lookup method scrolls the table.

TTable.Lookup does NOT move the record pointer.

> Lookup method really belongs to TBDEDataset. Is the implementation
> different for EDB?

TEDBTable.Lookup doesn't move the record pointer too, if that is what you
are asking.

--
Fernando Dias
[Team Elevate]

Thu, Apr 2 2009 9:31 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Roy


Why do you think Lookup is moving the cursor?

Roy Lambert [Team Elevate]
Mon, Apr 6 2009 10:52 PMPermanent Link

"Roy Jonker"
I should have been a bit clearer: when called during an Insert (same table
as the Lookup) it cancels the Insert.  Maybe that is asking a bit much ...

Roy

"Roy Lambert" <roy.lambert@skynet.co.uk> wrote in message
news:63500431-00DB-4224-BC55-426F7C1CB228@news.elevatesoft.com...
> Roy
>
>
> Why do you think Lookup is moving the cursor?
>
> Roy Lambert [Team Elevate]
>
Tue, Apr 7 2009 2:27 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Roy


Same table, same cursor or same table, different cursor?

Roy Lambert [Team Elevate]
Tue, Apr 7 2009 1:10 PMPermanent Link

"Roy Jonker"
Same table, same cursor. Which, as I wrote before, may be asking a bit much.

Roy

"Roy Lambert" <roy.lambert@skynet.co.uk> wrote in message
news:FDA9F64F-7A74-4C1A-AEA3-C802B7CCB6CF@news.elevatesoft.com...
> Roy
>
>
> Same table, same cursor or same table, different cursor?
>
> Roy Lambert [Team Elevate]
>
Tue, Apr 7 2009 1:52 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Roy


>Same table, same cursor. Which, as I wrote before, may be asking a bit much.

Yes it is <vbg> you need to use a separate cursor.

Roy Lambert [Team Elevate]
Image