You'll need to do a little more than just "Double", but I think what
you're looking for is Activator.CreateInstance.  It accepts a full
type name, or a Type variable, and instantiates an object of that
type.

You can convert a fully qualified type name to a type of Type by using
the Type.GetType method.

On Apr 17, 1:11 pm, jtaylor <[email protected]> wrote:
> I don't think it's possible, but is there any way to use a variable as
> a type in a Dim statement?
>
> For example:
>
> Dim Field1 as String = "Double"
> Dim Field2 as Field1

Reply via email to