Dim variable As Integer ?? Generics (2.0), using "Object" (the type is not
supposed to be known at compile time ?), creating code using CodeDom ?
Explaining what you are trying to do may help...
In particular if doing simply :
Dim variable As Integer
You can use Variable.GetType to get the type as a type variable (ie. the
other way round, you can the type name from the variable instead of
creating the variable using the type name).
Patrice
--
"Benjamin" <be***************@nospam.nospam> a écrit dans le message de
news:86**********************************@microsof t.com...
Hi!
I would like to dim variables using dynamic code, like following:
Dim type as String = "Integer"
Dim variable as [type]
(the issue is in fact about my own types,
but let us isolate the issue using the native types)
Best regards,
Benjamin