TableGetFieldByName

Top  Previous  Next

Prototype

 

StrFieldValue:=TableGetFieldByName(intTableHandle, strFieldName)

 

Description

 

Returns the field value by using the field name as indicator. Names have to be into DataBase.

 

Parameters

 

IntTableHandle: integer value corresponding to the table handle.

 

StrFieldName: string corresponding to the field name.

 

Returned value

 

StrFieldValue: field value.

 

Notes

 

None.

 

Example

 

// Store a table handle

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

 

// Move to the first record of the table

TableFirst(TableOne);

 

// Start the loop

While not TableEOF(TableOne) do

 

Begin

 

// Set the edit mode

TableEdit(TableOne);

 

// Send a keys sequence

SendKeys('Invoices', TableGetFieldByName(TableOne,'COMPANY TITLE'), False, False, false);

 

// Move to the next record

TableNext(TableOne);

End;

 

// Close the table

TableClose(TableOne);