TableFind
Previous  Top  Next


Prototype

BoolFound:=TableFind(intTableHandle,strFieldValue)

Description

It makes a search on the index currently selected inside the table.

Parameters

IntTableHandle
: integer value corresponding to the table handle.

StrFieldValue:
string corresponding to the field value.

Returned value

BoolFound: it returns true and selects the record it this one is found, otherwise it returns false.

Notes

None.

Example

//It opens a table 
UnaTabella:=TableOpen('c:\invoices\index','invoices.db'); 

//It orders the table  according to  a field
TableSetIndex(UnaTabella,'Company'); 

// It looks for the first field data into the table,if it doesn't exist then
If  TableFind(UnaTabella, 'Recogniform Spa') then
   ApplicationLog(_CurrentAgent,'Recogniform Spa is in the list.')
else
   ApplicationLog(_CurrentAgent,'Recogniform Spa is not in the list.');

//it executes other operations

//It closes the table
TableClose(UnaTabella);