Board index » delphi » "Next" Locate

"Next" Locate

Hi FOlks!

im trying to make a "next" locate... how can i locate another record with
the same parameter after the locate method?

Like this:

AdoTable1.Locate('Fiel', what to find, []) ...........

then in another button, i wanna search for other record with the same "what
to find", but the next, i tried to locate again, but retrives the same
record...

Best Regards,
Rafael

 

Re:"Next" Locate


My guess would be that if the first locate is successful, then when they
click the find next button, you should do a adotable.next prior to the
locate.
"Rafael Luiz M. Fran?a" <rafael.marq...@varig.com.br> wrote in message
news:39d4cd05_1@dnews...
Quote
> Hi FOlks!

> im trying to make a "next" locate... how can i locate another record with
> the same parameter after the locate method?

> Like this:

> AdoTable1.Locate('Fiel', what to find, []) ...........

> then in another button, i wanna search for other record with the same
"what
> to find", but the next, i tried to locate again, but retrives the same
> record...

> Best Regards,
> Rafael

Other Threads