InsertField  Table

The InsertField function inserts a new field.

Syntax

Integer Table.InsertField(
     String name,
     Integer index = -1)

Parameters

nameName of the field.Required
indexIndex 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")
SECCIA Documentation - Copyright © 2001-2009 Sylvain Seccia