Field-Map Scripting

4.1.11.2.27 GetFirstChildElementFloatAttributeAsFloat

GetFirstChildElementFloatAttributeAsFloat function


Prototype:

function GetFirstChildElementFloatAttributeAsFloat(const ElementPath, AttributeName: string; const NullValue: extended) : extended;

Description:

Use the GetFirstChildElementFloatAttributeAsFloat function to obtain a floating-point value of the specified attribute (parameter AttributeName) as extended. The attribute is located in the first child element of the element specified as the ElementPath parameter, or, if an XPath condition is specified, in the first found child element which meets this condition.

Syntax:

variable := TScriptXMLElement.GetFirstChildElementFloatAttributeAsFloat(ElementPath, AttributeName);


Part

Description


variable

A variable declared as an extended


TScriptXMLElement

A variable declared as an instance of the TScriptXMLElement class


ElementPath

A string parameter specifying the reference element


AttributeName

A string parameter specifying the attribute of the located XML element


NullValue

An extended parameter defining what value will be considered a null value

Return value:

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



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