Home > Available Help Files > PC-DMIS BASIC Language > Language Reference A – Z > Oct Function > Example - Oct Function
Current Help File: PC-DMIS Basic (View Core Help)
Example - Oct Function
Sub Main ()
Dim Msg, Num ' Declare variables.
Num = InputBox("Enter a number.") ' Get user input.
Msg = Num & " decimal is &O"
Msg = Msg & Oct(Num) & " in octal notation."
MsgBox Msg ' Display results.
End Sub