Prototype
StrName:=TableFieldName(IntTableHandle,intFieldName)
Description
It 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
// It opens a table
UnaTabella:=TableOpen('c:\invoices\index','invoices.db');
name:=TableFieldName(unaTabella,1);
//It orders the table according to a field
TableSetIndex(UnaTabella,name);
// It looks for the first field data into the table,if it doesn't exist then
TableFindNearest(UnaTabella, 'Smith');
//It stores the data table into a variable
data:= TableGetFieldByName (UnaTabella,name);
//it shows a message
ApplicationLog('Retrieved '+data+ ' in the field '+ name);
//It closes the table
TableClose(UnaTabella);