Quote Originally Posted by dday9 View Post
An Enum is meant for if you have unchanging values that are related to each other. Enum's can also only return the following data types: Byte, Integer, Long, SByte, Short, UInteger, ULong, or UShort.

A Type can be thought of the foundation of a programming language. It's the most basic form of a given value.
Oh my God !!!

Where is the Type command in VB.Net ?!!!

Type was a useful command to make user-defined variables in modules and classes...

an example about Type:

Code:
'''''''' In Module1 in a Visual Basic 6 Project '''''''''''
Public Type test1
    a1 As String
    a2 As Byte
    a3 As String * 3
    a4 As Integer
End Type
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''


'''''''' In Form1 in a Visual Basic 6 Project '''''''''''

Private Sub Form_Load()

    Dim a_final As test1
    
    a_final.a1 = "test"
    a_final.a2 = 2
    a_final.a3 = "ali"
    a_final.a4 = 6536
    
    MsgBox a_final.a1
    MsgBox a_final.a2
    MsgBox a_final.a3
    MsgBox a_final.a4
    
End Sub

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Is the Enum equivalent of Type in VB.Net ?!