Wstring (Function)
 
Fills a WString with a certain length of a certain wide character

Syntax
Usage

result = WString( count, ch_code )
or
result = WString( count, ch )

Parameters

count
An Integer specifying the length of the string to be created.
ch_code
An Integer specifying the Unicode char to be used to fill the string.
ch
A WString whose first character is to be used to fill the string.

Return Value

The created WString. An empty string will be returned if either ch is an empty string, or count <= 0.

Description

WString generates a temporary WString filled with count copies of a Unicode character. This string can be printed or assigned to a previously Dimed WString.

Example

Print WString( 4, 934 )         
Print WString( 5, WStr("Indeed") )   
End 0

 
Platform Differences

  • Unicode strings are not supported in the DOS port of FreeBASIC.

Dialect Differences

  • Not available in the -lang qb dialect unless referenced with the alias __Wstring.

Differences from QB

See also

ΦΦΦΦ
IIIII