DF_FETCH_FIELD_COUNT¶
Applies to: MYSQLFlex
This attribute is used to get the number of fields or columns in the given table. Note that this is referring to the columns in the SQL backend and may not necessarily reflect the number of columns in DataFlex.
This is a readonly attribute.
Syntax
Get_Attribute DF_FETCH_FIELD_COUNT of {FileNumber} to {variable}
Parameter |
Description |
---|---|
FileNumber |
Number of the file (Filename.File_Number) |
variable |
Integer, number of fields in the table |
Example
integer iNumFields
open OrderHea
get_attribute DF_FETCH_FIELD_COUNT of OrderHea.File_Number to iNumFields
- Related Attributes
DF_FIELD_NATIVE_TYPE