SettgGetWStringValue (FUN)

FUNCTION SettgGetWStringValue : RTS_IEC_RESULT

Get a WSTRING value from settings
InOut:

Scope

Name

Type

Comment

Return

SettgGetWStringValue

RTS_IEC_RESULT

Runtime system error code (see CmpErrors.library).

Input

pszComponent

REFERENCE TO STRING

Name of component

pszKey

REFERENCE TO STRING

Name of key

pwszValue

POINTER TO WSTRING

Pointer to value for result

piLen

POINTER TO DINT

Max length of string in WSTRING characters (not bytes!)

pwszDefault

REFERENCE TO WSTRING

Default value to set, if key not found

bCached

DINT

Flag, if value should be read cached or direct from file (CMPSETTINGS_CACHED, CMPSETTINGS_NOT_CACHED)