%UCHAR

Return a UTF-16 character from an integer expression

 

 

 

NSupported in Synergy .NET
unicode_char = %UCHAR(expression)

Return value

unicode_char

The UTF-16 character that corresponds to the integer character value of expression. (1-character string)

Arguments

expression

The expression to convert. (i)

Discussion

Literals that contain Unicode characters, or the results of %UCHAR, are intended to be assigned to .NET string types (System.String).

Note

If a string containing Unicode characters is assigned to an alpha field or passed to a parameter typed as alpha, the results may differ from what you expect. (If the .UNICODE preprocessor directive has been specified, a level 4 compiler warning will occur.)

Examples

The following example returns a 16-bit Unicode character for 8243.

data charvar ,char
charvar = %uchar(8243)