Skip to main content
Skip table of contents

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.


long _stdcall StringToConstant ( const char *pString )

Parameter Description:

Returns: Constant number of the passed string.

  • pString – A pointer to the string representation of the constant.


  • None
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.