VBGamer |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Redefining variables in a type statement DiscoStew (7 replies, 0 views) (2000-Jun-15) I have been trying out something, but I can't get it to work. I don't know if I can change it, but here it is...
I want to set a variable in a Type statement with a groups of other variables. I want to then redefine that variable to be a different Type variable like so...
Private Type ChangeVar
Data1 as byte
end type
Private Type Type1
Variable1 as integer
end Type
Dim Group1 as Type1
************************************
Private Sub Form_Load()
Redim Group1.Variable1 as changeVar
End Sub
Is this possible? If this is wrong, then how is it supposed to be? Also, how do I set up a variable to be an unknown type, if possible?
|