摘要:【VB.NET】ENUM
定義名稱 : 列舉
格式 :
[ <attribute list> ] [ access modifier ] [ Shadows ]
Enum enumeration name [ As data type ]
member list
End Enum
範例 :
Enum SexType As Integer
Boy = 1
Girl = 2
End Enum
Dim sex As SexType = SexType.Boy
MessageBox.Show("Sexs: " & sex.ToString() & " (" & sex & ") ")
既然走了! 就勇往的去 ......