Need help with CLASSES

Hi..

i have a little problem. I want to know if it's able to handle with constructurs like in c++. And if it's possible please tell me how i (or the compiler) can create the constructur....

Thx Omikron

Comments

  • [b][red]This message was edited by the SilentRage at 2002-2-12 21:27:15[/red][/b][hr]
    Yes, look up Type Statement in the MSDN. Type's are VB's equivilent to structs.

    Private Type Record
    ID As Long
    First As String
    Last As String
    Products() As String
    End Type
    Sub Main()
    Dim MyRecord As Record
    MyRecord.ID = 10
    MyRecord.First = "Silent"
    MyRecord.Last = "Rage"
    ReDim MyRecord.Products(10) As String
    End Sub

    I think ya got the idea. :)






  • sorry... my foult... i ment CONSTRUCTOR :)

    But thx for ur answer....
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories