sysGetVariableDescriptionForValue
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DEFunction Syntax
long sysGetVariableDescriptionForValue(SysVarName, long value, char buffer[], long bufferSize); // form 1long sysGetVariableDescriptionForValue(char namespace[], char variable[], long value, char buffer[], long bufferSize); // form 2
Description
Retrieves a description for a value of a system variable of type long or long array. In this way, you can access the value table of the system variable.Parameters
- namespace: Name of the namespace.
- variable: Name of the variable.
- value: Value for which the description shall be retrieved.
- buffer: Buffer which receives the description.
- bufferSize: Size of the buffer.
- SysVarName: Name of the fully qualified name of the system variable, including all namespaces, separated by ”::”. The name must be preceded by “sysVar::”.
Return Values
- 0: no error, function successful
- 2: variable was not found or second try to define the same variable
- 5: there is no description of this value for the variable
- 6: the buffer is not large enough for the description