SettgGetStringValue
(FUN)
FUNCTION SettgGetStringValue : RTS_IEC_RESULT
Get a string value from settings
- InOut:
Scope
Name
Type
Comment
Return
SettgGetStringValue
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
pszValue
POINTER TO STRING
Pointer to value for result
piLen
POINTER TO DINT
Max length of string value
pszDefault
REFERENCE TO STRING
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)