SetAttributeAsBool

SetAttributeAsBool 1:

This method sets the value of an attribute. The value has the data type Boolean.

Syntax

METHOD SetAttributeAsBool : SXmlAttribute
VAR_INPUT
  a     : SXmlAttribute;
  value : BOOL;
END_VAR

SetAttributeAsBool 2: Return value

Name

Type

SetAttributeAsBool

SXmlAttribute

SetAttributeAsBool 3: Inputs

Name

Type

a

SXmlAttribute

value

BOOL

Sample call:

xmlAttr := fbXml.SetAttributeAsBool(xmlExistingAttr, TRUE);