Field-Map Scripting

4.1.9.10 AddStringAttribute

AddStringAttribute function


Prototype:

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

Description:

Use this function to add a new string 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.AddStringAttribute(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 characters (0-255)


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