TableGetFieldByName
Previous  Top  Next


Prototype

StrFieldValue:=TableGetFieldByName(intTableHandle, strFieldName)

Description

It 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

// It stores a table handle
UnaTabella:=TableOpen('c:\archive\index\','clients.db');

// It places itself on the first record of the table
TableFirst(UnaTabella);

// It starts the cycle
While not TableEOF(UnaTabella) do

Begin  
 
// It sets the edit mode   
TableEdit(UnaTabella);  
 
// It sends a keys sequence  
SendKeys('Invoices', TableGetFieldByName(UnaTabella,'COMPANY TITLE'), False, False, false);  
 
// It moves on the next record  
TableNext(UnaTabella);  
End;  

// It closes the table
TableClose(UnaTabella);