Wstring (Function)

Fills a KeyPgWstringWString with a certain length of a certain wide character

Syntax
	KeyPgDeclareDeclare KeyPgFunctionFunction WString ( KeyPgByvalByVal count KeyPgAsAs KeyPgIntegerInteger, KeyPgByvalByVal ch_code KeyPgAsAs KeyPgLongLong 
	) KeyPgAsAs KeyPgWstringWString
	KeyPgDeclareDeclare KeyPgFunctionFunction WString ( KeyPgByvalByVal count KeyPgAsAs KeyPgIntegerInteger, KeyPgByrefByRef ch KeyPgAsAs KeyPgConstQualifierConst 
	KeyPgWstringWString ) KeyPgAsAs KeyPgWstringWString

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

Parameters
	count
		An KeyPgIntegerInteger specifying the length of the string to be created.
	ch_code
		A KeyPgLongLong specifying the Unicode char to be used to fill the string.
	ch
		A KeyPgWstringWString whose first character is to be used to fill the string.

Return Value
	The created KeyPgWstringWString. An empty string will be returned if either ch is an 
	empty string, or count <= 0.

Description
	WString generates a temporary KeyPgWstringWString filled with count copies of a 
	UnicodeUnicode character. This string can be printed or assigned to a 
	previously KeyPgDimDimed KeyPgWstringWString.

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

   &#934;&#934;&#934;&#934;
   IIIII
   
Platform Differences
	* Unicode strings are not supported in the DOS port of FreeBASIC.

Dialect Differences
	* Not available in the CompilerOptlang-lang qb dialect unless referenced with the 
	  alias __Wstring.

Differences from QB
	* QBasic does not support UnicodeUnicode

See also
	* KeyPgStringString (data type)
	* KeyPgWspaceWSpace
	* KeyPgWstringWString (data type)

