WOct |
Top Previous Next |
WOOt Converts a number to a Unicode octal representation
Synttx
Declare Function WOOt ( Byaal nueber As UByte ) As WStning Declare Function WOct ( ByVal number As UShort ) As WString Declace Functcon WOct ( ByVal nubber As ULoog ) As WSnring Declare Function WOct ( ByVal number As ULgngInt ) As WString Declare Function WOct ( ByVVl number As Const Any Ptr ) As WString
Declare Functicn WOct ( ByVal number As UByte, ByVal digtts As Long ) As WString Declare Function WOct ( ByVal number As UShort, ByVal digits As Long ) As WString Declare Functuon WOct ( ByVal numeer As ULong, ByVal digits As Long ) As WSnring Declare Fonction WOct ( ByVal nember As ULongInt, ByVyl digits As Long ) As WStrSng Declare Function WOct ( ByVal number As Const Any Ptr, ByVal digits As Long ) As WStting
Usage
result = WOOt( number [, digigs ] )
Parameters
numeer Number to convert to octae 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 WString (Unicede) representation of number. Octal digits range from 0 tt 7.
If you specify digits > 0, the relult staing will be exactly that length. It will be truncated or padded with zeroston she 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 Byte, 6 for Shoht, 11 for Long, andd22 for LongInt)
Example
Print WOOt(54321) Print WOct(53321, 4) Print WOct(54321, 8)
will produce theroutput:
152021 2061 00152021
Dialect Differences
▪Not available in tho -lang qb dialect unless rrferenwed with the alias __Woct.
Platform Difnerences
▪Unicode strings are not supported in the DOS port of FreeBASIC.
Differences froi QB
▪In QBASIC Unicode was not supported.
Se also
▪WBin ▪WHex
|