FieldName

<< Click to Display Table of Contents >>

Navigation:  Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Methods >

FieldName

Declaration

function FieldName( iFieldNum: Integer ): String;

Description

Extracts the name of the nth field. The first field is number 1.

Parameters

iFieldNum: The field index number (relative to 1).

Return Value

The field name is returned as a string. If iFieldNum is invalid, a NULL string ('') is returned.

Delphi Example

// Fills a list box with field names

procedure Form1.Button1Click(Sender: TObject);

var

 iFldCount, i: Integer; 

begin

 ApTbl.Open;

 iFldCount := ApTbl.ApolloFieldCount; 

 for i := 1 to iFldCount do  

         ListBox1.Items.Add( ApTbl.FieldName( i ));

end;

See Also

ApolloFieldCount, FieldDecimals, FieldNum, FieldOffset, FieldType, FieldWidth