VB.Net Tutorial/Data Type/Hex

Материал из VB Эксперт
Перейти к: навигация, поиск

Hex

Public Class Tester
    Public Shared Sub Main
        For counter As Integer = 0 To 15
            Console.WriteLine(Hex(counter))
        Next counter
    End Sub
End Class
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F

Hex: output hexadecimal value

Option Strict On
Public Module modMain
   Public Sub Main()
      Console.WriteLine(Hex("&HE0F1"))
      Console.WriteLine(Hex("&HFFFF"))
   End Sub
End Module
E0F1
FFFF