Hosehead
asked on
Structures in VB
I learned to program in Pascal and then advanced programing in C/C++ on Unix/Dos machines. I am now stuck writing a VB program in Excel and I can't find an object or variable that behaves like a structure from C. I just want a variable that I can use in all my modules and can be organized like this:
variablename.onedimessiona larray_of_ title_for_ data(0)
variablename.twodimessiona larray_of_ data(0,0)
It is basicly an array that is capable of holding different data types in each element including other arrays.
variablename.onedimessiona
variablename.twodimessiona
It is basicly an array that is capable of holding different data types in each element including other arrays.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yep.
Type tUDF
Var1(100) As String
Var2(50) As Integer
End Type
Dim UDTVar As tUDT
'Or even
Din UDTArray(100) As tUDT
Type tUDF
Var1(100) As String
Var2(50) As Integer
End Type
Dim UDTVar As tUDT
'Or even
Din UDTArray(100) As tUDT
ASKER