Field-Map Scripting

4.1.11.2.8 GetElementBoolean

GetElementBoolean function


Prototype:

function GetElementBoolean: variant;

Description:

The GetElementBoolean function returns the value of the specified XML element (i.e. the text between the opening and the closing tag of the element) as a variant, provided it is a valid Boolean value: 1, 0, true or false (case insensitive).

Syntax:

variable := TScriptXMLElement.GetElementBoolean;


Part

Description


variable

A variable declared as a variant


TScriptXMLElement

A variable declared as an instance of the TScriptXMLElement class

Return value:

Boolean value of the specified element as a variant


Note: This function is available since version X7.



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