AttributeAsFloat

AttributeAsFloat 1:

This method returns the value of an attribute as data type Float. The attribute is transferred to the method as input parameter.

Syntax

METHOD AttributeAsFloat: REAL
VAR_INPUT
  a : SXmlAttribute;
END_VAR

AttributeAsFloat 2: Return value

Name

Type

AttributeAsFloat

REAL

AttributeAsFloat 3: Inputs

Name

Type

a

SXmlAttribute

Sample call:

rValue := fbXml.AttributeAsFloat(xmlAttr);