Field-Map Scripting

4.1.9.8 AddFloatAttribute

AddFloatAttribute function


Prototype:

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

Description:

Use this function to add a new attribute of floating-point type 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.AddFloatAttribute(AttributeName, AttributeLabel, Size, DecimalPlaces, 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 (including the decimal point)


DecimalPlaces

The number of decimal places


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