Convert a Number to a Octal String



Returns the octal string representation of an integer.

'Namespace: System
'Namespace: Microsoft.VisualBasic

Private Sub btnOctal_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOctal.Click

        Dim Number As Integer
        Number = 1345
        Dim octal As String = Oct(Number)
        'Output2501
        MessageBox.Show(octal)

    End Sub

Share |

 Cant find the page you are looking for?
 Help us to improve by adding the content that you are looking for.
 Leave a feedback
 We look forward to hear your comments and feedback.