I am trying to make a form load and show by retrieving the form's name from a text file. I cant use the Forms collection because it only works on loaded forms. What I am trying to do is sort of the reverse of the CallByName function where the object is known, but the property or method is not.
Another way of putting the problem is as follows;
Dim FormToLoad as string
FormToLoad="Form1"
FormToLoad.Show
The above example will obviously not work because of the object mis-match, but I hope I have demonstrated what I am trying to do.
Chris Benton
Another way of putting the problem is as follows;
Dim FormToLoad as string
FormToLoad="Form1"
FormToLoad.Show
The above example will obviously not work because of the object mis-match, but I hope I have demonstrated what I am trying to do.
Chris Benton