Prototype
IntCount:=TableFieldCount(IntTableHandle)
Description
It returns the fields number of the table passed as parameter.
Parameters
IntTableHandle: integer value corresponding to the table handle.
Returned value
IntCount: integer value corresponding to the fields into the table.
Notes
None.
Example
// It stores the table handle
UnaTabella:=TableOpen('c:\invoices\index\','invoices.db');
// It stores the table fields number
Fields:= TableFieldCount(UnaTabella);
// It converts the record number into string
StrFields:= IntToStr(Fields);
//it shows a message with the fields number
ApplicationLog(_CurrentAgent,'Fields of this table are:' + StrFields);
// It executes other operations
/It closes the table
TableClose(UnaTabella);