CreateObj(Handle, ObjectType, BodyProps, BodyValues, TableName, TableCols, TableValues,...)

Creates an object from a set of body properties and values and a set of subtables and stores it in the object pool. Handle is the name of the object. It is case-sensitive and can contain any character except ':'. ObjectType is the type of the object that will be created. It is not case-sensitive.

An object consists of a body and a set of subtables. The names of the body properties are specified by the array BodyProps. The values of the properties are specified in the array BodyValues, each row corresponding to a body property.

TableName is the name of the subtable. TableCols is an array of column names. TableValues specifies the values in the table. CreateObj can take up to five subtables. If there are more than this then the object can be created using GridToObject. Alternatively the object can be created with five subtables and the remaining added using CloneObj.