Field-Map Scripting

4.1.9.7 AddintegerAttribute

AddIntegerAttribute function


Prototype:

function AddIntegerAttribute (const AttributeName: string; const AttributeLabel: string; Size: integer; ReadOnly: boolean): boolean;

Description:

Use this function to add a new integer attribute to the Field-Map layer and set its name, label, size and whether or not it will be read-only in Data Collector.

Syntax:

variable := Layer.AddIntegerAttribute(AttributeName, AttributeLabel, Size, ReadOnly);


Part

Description


variable

A variable declared as boolean


Layer

A reference to the Field-Map layer as defined in Field-Map Project Manager


AttributeName

The name of the new attribute


AttributeLabel

The label of the new attribute


Size

The maximum allowed number of digits


ReadOnly

Sets the new attribute to be read-only (true)

Return value:

True if the attribute has been successfully added



See also:

OpenTable; LoadSimpleXML; OpenParadoxTable; CreateMemTableFromDefs; CloseAndFreeTable; Constants; AddintegerAttribute; AddFloatAttribute; AddbooleanAttribute; AddStringAttribute; AttributeExists; DefaultValue; DefaultValueEnabled; GetAttributesWithDefaultValue; GetAttributesWithDefaultValue