aultmike
Programmer
- Feb 9, 2009
- 9
Consider this example:
Dim x As Int32
Dim newValue As String
x = CType(newValue, x.GetType())
I keep getting the design-time error, Type 'x.GetType' is not defined.
Is there a way I can do this? I would like to be able to cast values at run-time depending on the type of values I'm working with.
Thanks!
Dim x As Int32
Dim newValue As String
x = CType(newValue, x.GetType())
I keep getting the design-time error, Type 'x.GetType' is not defined.
Is there a way I can do this? I would like to be able to cast values at run-time depending on the type of values I'm working with.
Thanks!