Field-Map Scripting

4.1.11.2.19 GetFloatAttributeAsFloat

GetFloatAttributeAsFloat function


Prototype:

function GetFloatAttributeAsFloat(const AttributeName: string; const NullValue: extended): extended;

Description:

Use the GetFloatAttributeAsFloat function to obtain a floating-point value of the specified attribute as an extended value.

Syntax:

variable := TScriptXMLElement.GetFloatAttributeAsFloat(AttributeName, NullValue);


Part

Description


variable

A variable declared as an extended


TScriptXMLElement

A variable declared as an instance of the TScriptXMLElement class


AttributeName

A string parameter specifying the attribute of the given XML element


NullValue

a value that should be used in case the attribute value is null

Return value:

A floating-point value of the specified attribute as an double value



See also:

GetRootElement; GetElementName; GetChildElements; GetFirstChildElement; GetElementText; GetElementInteger; GetElementDouble; GetElementBoolean; GetElementCDATA; HasAttribute; HasNoNullAttribute; GetStringAttribute; GetStringAttributeAsString; GetStringAttributeAsDateTime; GetIntegerAttribute; GetIntegerAttributeAsInteger; GetFloatAttribute; GetFloatAttributeAsVariant; GetFloatAttributeAsFloat; GetBooleanAttribute; GetFirstChildElementStringAttribute; GetFirstChildElementStringAttributeAsString; GetFirstChildElementIntegerAttribute; GetFirstChildElementIntegerAttributeAsInteger; GetFirstChildElementFloatAttribute; GetFirstChildElementFloatAttributeAsVariant; GetFirstChildElementFloatAttributeAsFloat; GetFirstChildElementBooleanAttribute; Name; FreeXMLElement; SaveValuesToTable; GetRootElementName; GetFirstChildElementText; GetFirstChildElementinteger; GetFirstChildElementDouble; GetFirstChildElementboolean