Declaration

function AddField(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.

 
Parameters

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.

Home | Site Contents | Documentation | NexusDB Manual V4 | Class Reference | Symbol Reference | Classes | TnxFieldsDescriptor