VBGamer |
|
RE: Redefining variables in a type statement DiscoStew (0 replies, 0 views) (2000-Jun-15) Say that I have some data, but they have different variables for them. Each group of data has its own type statement for it. I know that I can't have multiple types for an array, but what if I could make a varialbe in each part of the array that has a different type in it.
ex.
Type Data1
String1 as string
end type
Type Data2
Integer1 as integer
end type
Type HaveData
DataType as ?????? (I need a variable name that is somewhat null or unknown)
end type
Dim GroupData(1) as HaveData
------------------------------------------------------------------
Private Sub Form_Load()
Redim GroupData(0).DataType as Data1
Redim GroupData(1).DataType as Data2
End Sub
This is what I mean. Is this possible as it is, or is there another way?
|