VB.Net Tutorial/Data Type/ULong
Версия от 16:40, 26 мая 2010; (обсуждение)
ULong of Decimal
public class Test
public Shared Sub Main
Dim flags As ULong
flags = 100 " Decimal 100.
Console.WriteLine(flags) " Decimal.
End Sub
End class
100
ULong of Hex
public class Test
public Shared Sub Main
Dim flags As ULong
flags = &H64 " Hexadecimal &H64 = 6 * 16 + 4 = 96 + 4 = 100.
Console.WriteLine(Hex(flags)) " Hexadecimal.
End Sub
End class
64
ULong of Oct
public class Test
public Shared Sub Main
Dim flags As ULong
flags = &O144 " Octal &O144 = 1 * 8 * 8 + 4 * 8 + 4 = 64 + 32 + 4 = 100.
Console.WriteLine(Oct(flags)) " Octal.
End Sub
End class
144