Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread DataSet
Fri, May 4 2012 4:06 PMPermanent Link

Riaz

Hi, how to use the DataSet Find method please
Mon, May 7 2012 12:19 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Riaz,

<< Hi, how to use the DataSet Find method please >>

Use something like this:

  MyDataSet.InitFind;
  MyDataSet.Columns['MyColumn'].AsString:='Find this value';
  if MyDataSet.Find(<Nearest>,<CaseInsensitive>) then
     FindLabel.Caption:='Found'
  else
     FindLabel.Caption:='Not Found';

The Nearest and CaseInsensitive Boolean parameters are optional, and the
Nearest parameter can only be used if searching on a sorted dataset where
the columns that you're searching on are part of the active sort.  If not,
you'll see an error message.

Declaration is here:

http://www.elevatesoft.com/manual?action=viewmethod&id=ewb1&comp=TDataSet&method=Find

If you have any other questions, please let me know.

Tim Young
Elevate Software
www.elevatesoft.com
Image