Declaration
function InsertFieldAt(aInx: Integer; const aName: string; const aDesc: string; aType: TnxFieldType; aUnits: Integer; aDecPl: Integer; aRequired: Boolean; aClass: TnxFieldDescriptorClass = nil): TnxFieldDescriptor;
Description
This function adds a new instance of a Field Descriptor to the data dictionary and returns the newly created Instance. The field is inserted into the array at position aInx and the rest of the field array indexes are adjusted.
Parameters
aInx: Integer
the index of the new field
const aName: string
the field name
const aDesc: string
a human readable description of the field
aType: TnxFieldType
the field type
aUnits: Integer
Units needed/wanted for the field
aDecPl: Integer
the number of decimal places for the field (if applicable)
aRequired: Boolean
set to True if the field needs a value.
aClass: TnxFieldDescriptorClass = nil
the class of the instance to be created.