Gets the value of a particular variable.
returnCode = wcGetVariable(cntrlHandle, "$customerSelection", &product);
int wcGetVariable(void *controlHandle, char *varName, char **currentValue)
controlHandle | The handle to the control structure. |
varName | Name of the variable for which you want to get the value. |
currentValue | Out parameter used to return a pointer to the data associated with the specified varName. |
0 | Success. |
Error code | Failure or exception. For a list of possible error codes, see Error Messages. |
The following code shows how wcGetVariable( ) is used in an application.
wcGetVariable(wcp, "$MIval", &mival); if (mival==NULL) wcSetVariable(wcp, "$MIval", "firstpage");
wcSetVariable( )
wcDropVariable( )