GetTextWNonBlocking (FUN)

FUNCTION GetTextWNonBlocking : ReturnValues

This function returns the language specific text of a textlist as WSTRING. To retrieve real unicode strings the parameter “Use Unicode strings” must be activated in the visualization manager. This function does not block and returns the error ReturnValues.ERR_LOCKED if access to the text was not possible at the current time. To obtain the text, the function must be called until ReturnValues.ERR_OK is returned.

InOut:

Scope

Name

Type

Comment

Return

GetTextWNonBlocking

ReturnValues

Possible last error values:

see ReturnValues (ENUM) where possible error reasons are described.

Inout Const

sTextList

STRING

The textlist name

sTextIndex

STRING

The textlist id

Input

pwsText

POINTER TO WSTRING

The buffer where the result text should be returned

diSize

DINT

The size of the parameter psText in byte (SIZEOF() can be used)

Output

bDefaultText

BOOL

Indicates if the default text is used