SettgGetWStringValue (FUN)
FUNCTION SettgGetWStringValue : RTS_IEC_RESULT
Get a WSTRING value from settings
- InOut:
Scope
Name
Type
Comment
Return
SettgGetWStringValueRTS_IEC_RESULTRuntime system error code (see CmpErrors.library).
Input
pszComponentREFERENCE TO STRING
Name of component
pszKeyREFERENCE TO STRING
Name of key
pwszValuePOINTER TO WSTRING
Pointer to value for result
piLenPOINTER TO DINT
Max length of string in WSTRING characters (not bytes!)
pwszDefaultREFERENCE TO WSTRING
Default value to set, if key not found
bCachedDINTFlag, if value should be read cached or direct from file (CMPSETTINGS_CACHED, CMPSETTINGS_NOT_CACHED)