WOct

Converts a number to a Unicode octal representation

Syntax
	KeyPgDeclareDeclare KeyPgFunctionFunction WOct ( KeyPgByvalByVal number KeyPgAsAs KeyPgUbyteUByte ) KeyPgAsAs KeyPgWstringWString
	KeyPgDeclareDeclare KeyPgFunctionFunction WOct ( KeyPgByvalByVal number KeyPgAsAs KeyPgUshortUShort ) KeyPgAsAs KeyPgWstringWString
	KeyPgDeclareDeclare KeyPgFunctionFunction WOct ( KeyPgByvalByVal number KeyPgAsAs KeyPgUlongULong ) KeyPgAsAs KeyPgWstringWString
	KeyPgDeclareDeclare KeyPgFunctionFunction WOct ( KeyPgByvalByVal number KeyPgAsAs KeyPgUlongintULongInt ) KeyPgAsAs KeyPgWstringWString
	KeyPgDeclareDeclare KeyPgFunctionFunction WOct ( KeyPgByvalByVal number KeyPgAsAs KeyPgConstConst KeyPgAnyAny KeyPgPtrPtr ) KeyPgAsAs KeyPgWstringWString

	KeyPgDeclareDeclare KeyPgFunctionFunction WOct ( KeyPgByvalByVal number KeyPgAsAs KeyPgUbyteUByte, KeyPgByvalByVal digits KeyPgAsAs KeyPgLongLong ) KeyPgAsAs 
	KeyPgWstringWString
	KeyPgDeclareDeclare KeyPgFunctionFunction WOct ( KeyPgByvalByVal number KeyPgAsAs KeyPgUshortUShort, KeyPgByvalByVal digits KeyPgAsAs KeyPgLongLong ) KeyPgAsAs
	KeyPgWstringWString
	KeyPgDeclareDeclare KeyPgFunctionFunction WOct ( KeyPgByvalByVal number KeyPgAsAs KeyPgUlongULong, KeyPgByvalByVal digits KeyPgAsAs KeyPgLongLong ) KeyPgAsAs 
	KeyPgWstringWString
	KeyPgDeclareDeclare KeyPgFunctionFunction WOct ( KeyPgByvalByVal number KeyPgAsAs KeyPgUlongintULongInt, KeyPgByvalByVal digits KeyPgAsAs KeyPgLongLong ) 
	KeyPgAsAs KeyPgWstringWString
	KeyPgDeclareDeclare KeyPgFunctionFunction WOct ( KeyPgByvalByVal number KeyPgAsAs KeyPgConstConst KeyPgAnyAny KeyPgPtrPtr, KeyPgByvalByVal digits KeyPgAsAs 
	KeyPgLongLong ) KeyPgAsAs KeyPgWstringWString

Usage
	result = WOct( number [, digits ] )

Parameters
	number
		Number to convert to octal representation.
	digits
		Desired number of digits in the returned string.

Return Value
	The Unicode octal representation of the number, truncated or padded with 
	zeros ("0") to fit the number of digits, if specified.

Description
	Returns the octal KeyPgWstringWString (Unicode) representation of number. Octal 
	digits range from 0 to 7.

	If you specify digits > 0, the result string will be exactly that 
	length.  It will be truncated or padded with zeros on the left, if 
	necessary.

	The length of the returned string will not be longer than the maximum 
	number of digits required for the type of number (3 characters for KeyPgByteByte, 
	6 for KeyPgShortShort, 11 for KeyPgLongLong, and 22 for KeyPgLongintLongInt)

Example
	Print WOct(54321)
	Print WOct(54321, 4)
	Print WOct(54321, 8)

	will produce the output:

	152061
	2061
	00152061

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

Platform Differences
	* Unicode strings are not supported in the DOS port of FreeBASIC.

Differences from QB
	* In QBASIC Unicode was not supported.

See also
	* KeyPgWbinWBin
	* KeyPgWhexWHex

