I have a savefile where I keep the name of the form that I want to load(as a string). Problem is I cant load this form using just the string.

example:
Say the name of the form is frmMain
You bring the name of the form in as a string

dim frm as string

frm = "frmMain"
Load frm

this will not work as frm is a string not an object

Question is how do I relate the the string to the object I want to load(in this case a form frmMain)?

And how do I go about loading the form once the relation is made?


Thanks