D
Don
Let's say I have a type name stored in a string (e.g. Dim typeName As String
= "Decimal"). Is it possible to CType() a variable to the type whose name
is stored in that string?
e.g.
Dim typeName As String = "Decimal"
Dim source as String = "3"
Dim target as Decimal
target = CType(source, <magic happens with typeName> )
Is there maybe another method that does this, instead of CType()?
= "Decimal"). Is it possible to CType() a variable to the type whose name
is stored in that string?
e.g.
Dim typeName As String = "Decimal"
Dim source as String = "3"
Dim target as Decimal
target = CType(source, <magic happens with typeName> )
Is there maybe another method that does this, instead of CType()?