The GetFieldIndex function retrieves the field index from its name.
Syntax
Integer Table.GetFieldIndex(
String name)
String name)
Parameters
| name | Name of the field. | Required |
|---|
Return value
The GetFieldIndex function returns the field index.
If an error occurs, the GetFieldIndex function returns -1.
Example
index = myTable.GetFieldIndex("ID")