The InsertField function inserts a new field.
Syntax
Integer Table.InsertField(
String name,
Integer index = -1)
String name,
Integer index = -1)
Parameters
| name | Name of the field. | Required |
|---|---|---|
| index | Index of the field. -1: Last. | Optional |
Return value
The InsertField function returns the index of the new field.
If an error occurs, the InsertField function returns -1.
Example
myTable.InsertField("Country")