Str2Asc

This function converts a character to its corresponding Unicode character code.

Function Group Execution Windows Embedded Thin Client Mobile Access
Str2Asc String Synchronous Supported Supported Supported Supported

Syntax

Web Studio Help s2fr function string str2asc.xml d201298e76 Str2Asc
strChar
The character to be converted.

Returned value

Returns the Unicode character code (in decimal) for the specified character.

Notes

Although the name of this function implies it only supports ASCII characters, it is in fact a legacy of previous versions of the software. The current version supports the full Unicode character set.

Examples

Tag Name Expression
Tag Str2Asc( “C” ) // Returned value = 67
Tag Str2Asc( “o” ) // Returned value = 111

Str2Asc