StringToConstant() [UD Library]
Converts the given string to the appropriate constant number. Used internally by the S functions, but could be useful to the end user when using the GetFirst/Next functions without the ability to include the header file. In this case a comparison could be done on the return values such as:
if (IOType == StringToConstant("LJ_ioANALOG_INPUT"))
This function returns LJ_INVALID_CONSTANT if the string is not recognized.
Declaration:
long _stdcall StringToConstant ( const char *pString )
Parameter Description:
Returns: Constant number of the passed string.
Inputs:
- pString – A pointer to the string representation of the constant.
Outputs:
- None