Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Open Form from String


Message #1 by "Paul Whygle" <paul@g...> on Fri, 17 Jan 2003 23:56:40
If formName is a string, use this:


    Dim frx As Form
    Set frx = Forms.Add(FormName)  '' add the form in the collection
    '' load, show do whatever
    Load frx
    frx.Show

Marco

> Is it possible to return a form from a function based off a name? here 
is 
a> n example of what I want to do but i know this example 
w> on't work. Also, the form has not been loaded yet so it 
i> s not in the forms collection.


  Return to Index