TableFieldName |
Top Previous Next |
Prototype
StrName:=TableFieldName(IntTableHandle,intFieldName)
Description
Returns the field name of which the progressive number passed as parameter.
Parameters
IntTableHandle: integer value corresponding to the table handle.
IntFieldName: integer value corresponding to the field progressive number.
Returned value
StrName: string containing the field name.
Notes
None.
Example
// Open a table TableOne:=TableOpenBDE('c:\invoices\index','invoices.db');
name:=TableFieldName(TableOne,1);
// Order the table according to a field TableSetIndex(TableOne,name);
// Search for the first field data into the table, if it doesn't exist then TableFindNearest(TableOne, 'Smith');
// Store the data table into a variable data:= TableGetFieldByName (TableOne,name);
// Log a message ApplicationLog('Retrieved '+data+ ' in the field '+ name);
// Closes the table TableClose(TableOne);
|