[Gambas-user] User Defined DataTypes and User Defined Enum?

Nisse Nordlund nisse.ngn at ...626...
Sun Apr 27 21:23:34 CEST 2008


Hi,

In VB You can define datatypes 'User Defined Type" and 'User Defined Enum'

Type:
Syntax in VB (in vb modul), sample:
*Private Type *ngnOwnTyp
    BytVal As Byte
    StrVal As String
    IntVal As Integer
    LngVal As Long
    SngVal As Single
    DblVal As Double
*End Type*

Enum:
Syntax i VB (in vb modul), sample:
*Private Enum* NGN_DATA_FORMAT
    m_BYTE = 1
    m_STRING = 2
    m_SHORT = 3
    m_LONG = 4
    m_RATIONAL = 5
    m_SBYTE = 6
    m_UNDEFINED = 7
    m_SSHORT = 8
    m_SLONG = 9
    m_SRATIONAL = 10
    m_SINGLE = 11
    m_DOUBLE = 12
*End Enum*

Is there any solution for this in gambas?

Another procedure?

A How to?

The documentation in this lack.

Regards

N-G Nordlund



More information about the User mailing list