GetCustomAttribute_str

GetCustomAttribute_str 1:

Syntax

Definition:

METHOD GetCustomAttribute_str : BOOL
VAR_INPUT
    sCustomAttributeName      : T_MaxString;
    sDstAttributeStringBuffer : Reference To T_MaxString;
    pnStringLen               : Pointer To UDINT;
END_VAR

GetCustomAttribute_str 2: Inputs

Name

Type

Description

sCustomAttributeName

T_MaxString

Name of the custom string attribute

sDstAttributeStringBuffer

Reference To T_MaxString

Pointer to a string buffer to write the custom string attribute into

pnStringLen

Pointer To UDINT

(Optional) Actual length of the string attribute

GetCustomAttribute_str 3: Return value

BOOL

Methods reads a custom attribute specified by sCustomAttributeName of type T_MaxString.

sCustomKey : T_MaxString := XmlTreeItem/XmlAttribute';
sValue : T_MaxString ;
fbprediction.GetCustomAttribute_str(sCustomKey, sValue);