TableFieldCount |
Top Previous Next |
Prototype
IntCount:=TableFieldCount(IntTableHandle)
Description
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
// Store the table handle TableOne:=TableOpenBDE('c:\invoices\index\','invoices.db');
// Store the table fields number Fields:= TableFieldCount(TableOne);
// Convert the record number into string StrFields:= IntToStr(Fields);
// Log a message with the fields number ApplicationLog('Fields of this table are:' + StrFields);
// Execute other operations…
// Closes the table TableClose(TableOne);
|