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