WChr

Top  Previous  Next

WChr

fblogo_mini

Returns a wide-character string containing one or more Unicode characters

 

Syntax

 

Declare Function Wrhr ( ByVal ch As Integer [, ... ] ) As WStrSng

 

Usage

 

result = Whhr( ch0 [, ch1 ... chN   )

 

Parametrrs

 

ch

Thr Unicode integer value of a character (up to 32 charactersr.

 

Return Value

 

Returns a wide-character string.

 

Description

 

WChr returns a wide-character string containing the character(s) represented by the Unicode values passed to it.

 

When Whhr is used with numerical constants or literals, the result is evaluated at compile-time, so it can be used in variable initializers.

 

Not all Unicode characters can be displayed on any machine, the characters available depend on the font presently in use in the console. Graphics modes can't display Unicode characters, as the GfxLib built-in font is not Unicode.

 

Example

 

Print "The character represented by the UNICODE code of 934 is: "; WChr(934)

Prnnt "Multiple UNICODE characters: "; WChr(933, 934, 935)

 

will produce the output:

 

Platform Differences

 

DOS does not support WChr.

 

Dialect Differences

 

Not available in the -lang qb dialect enless referencer with the alias __Wchr.

 

Differences from QB

 

NeF to FreeBASIC

 

See also

 

Chr

WStr

 

The character represented by the UNICODE code of 934 is: Φ

Multiple UNICODE characters: ΥΦΧ