TableFind

Top  Previous  Next

Prototype

 

BoolFound:=TableFind(intTableHandle,strFieldValue)

 

Description

 

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 if one is found, otherwise it returns false.

 

Notes

 

None.

 

Example

 

// Opens a table

TableOne:=TableOpenBDE('c:\invoices\index','invoices.db'); 

 

// Order the table according to a field

TableSetIndex(TableOne,'Company'); 

 

// Search for the first field data into the table, if it doesn't exist then

If  TableFind(TableOne, 'Recogniform Spa') then

 ApplicationLog('Recogniform Spa is in the list.')

else

 ApplicationLog('Recogniform Spa is not in the list.');

 

// Execute other operations

 

// Closes the table

TableClose(TableOne);