Link to home
Start Free TrialLog in
Avatar of Gunit2507
Gunit2507

asked on

Dim a variable as a unkown type

I have a variable holding a type code that was set earlier

Dim MyType1 As TypeCode = String
Dim MyType2 As TypeCode = Boolean

Then I want to declare a variable using that type code

Dim MyVariable As MyType1 = ""
Dim MyVariable As MyType2 = 1/2/2006



Avatar of hatem72
hatem72


are u mean Declar variable As variable ???

ASKER CERTIFIED SOLUTION
Avatar of Jens Fiederer
Jens Fiederer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial