Returns text that represents the octal value of the decimal argument.
Oct[$]( number )
Oct returns a Variant; Oct$ returns a String. The argument number can be any numeric expression. It is rounded to the nearest whole number
before being evaluated. An error occurs if number is a null. If the argument is an Integer or a Variant of VarType 2
(Interger), up to six octal characters are returned; if the argument is a Long, or a
Variant of VarType 3 (Long), up to 11 octal characters are returned. You can
represent octal numbers directly be preceding numbers in the proper range with &O. For example, &O10 is the octal notation for decimal 8.
This example returns the octal representation of the numeric variable Num.
OctRep = Oct( Num )