Board index » delphi » Locate next or find next?
Ian Black
![]() Delphi Developer |
Tue, 17 Oct 2000 03:00:00 GMT
|
Ian Black
![]() Delphi Developer |
Tue, 17 Oct 2000 03:00:00 GMT
Locate next or find next?I am using a parradox 7 database and I need to use a search to find I am currently using locate but I cant figure out how to "find the TIA Ian |
{*word*104}c
![]() Delphi Developer |
Wed, 18 Oct 2000 03:00:00 GMT
Re:Locate next or find next?On Fri, 1 May 1998 20:24:57 +0100, Ian Black <ian.bl...@zetnet.co.uk> Quote>I am using a parradox 7 database and I need to use a search to find that there isn't one. You'll have to do it the hard way (just like the rest of us chickens) using TTable.EOF and TTable.Next. For example: Find First: Table.Locate('Name','Santa',[loPartialKey,loCaseInsensitive]); Find Next: Found := False; Something like that. Good luck. |
ullr..
![]() Delphi Developer |
Wed, 18 Oct 2000 03:00:00 GMT
Re:Locate next or find next?In article <354ac7e2.38795...@news.mia.bellsouth.net>#1/1, QuoteMauri...@bellsouth.net wrote: table, then using a Next loop? -----== Posted via Deja News, The Leader in Internet Discussion ==----- |
{*word*104}c
![]() Delphi Developer |
Wed, 18 Oct 2000 03:00:00 GMT
Re:Locate next or find next?QuoteOn Sat, 02 May 1998 11:53:37 -0600, ullr...@math.okstate.edu wrote: explain it to me. (Pretty please?) Say I have a TDBGrid connected to a TTable via a TDataSource. The Now, the user wishes to locate two customers called Smith, without Satisfied, the user hits F3 to cause the application to find the next |
{*word*104}c
![]() Delphi Developer |
Wed, 18 Oct 2000 03:00:00 GMT
Re:Locate next or find next?On Sat, 02 May 1998 18:17:35 GMT, Mauri...@bellsouth.net ({*word*104}cat) Quote>Hm. Perhaps there is something I don't understand, and perhaps you can According to the documentation, FindNext will attempt to find the next record in a filtered dataset - so would Next. The only advantage (as far as I can see) is that FindNext saves one from having to check EOF. |
ullr..
![]() Delphi Developer |
Thu, 19 Oct 2000 03:00:00 GMT
Re:Locate next or find next?In article <354b6389.37058...@news.mia.bellsouth.net>#1/1, QuoteMauri...@bellsouth.net wrote: actually a question. The docs say something about TDataSet.FindNext being implemented in TTable, but offhand I don't see where that happens. I don't see quite why you can't just use a filter and say Next. You say the table's already filtered - you could change the filter. You don't want to change the view in the grid - why not? And/or why not just use a different TTable. About the database stuff I'm just a beginner. I Maybe I'm keeping track of whether various students I don't see why you can't do something like that. David C. Ullrich -----== Posted via Deja News, The Leader in Internet Discussion ==----- |