The Bull Og

Onine since 1994. Offline since 1976.

See also the archive

An individual post follows.

So, there I was trying to figure out how to instantiate a class when all I have is the name of the class as held in a string variable.  Thanks to this, it's easy: Dim objInstance As Object Dim reportType As Type = Type.GetType(sReport) objInstance = Activator.CreateInstance(Nothing, objType)