Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call(objects)byName?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi. I want to do the following:

Dim formToExecute as """STRING"""
formToExecute = myVar (suposse "frmMain")
callbyname formToExecute,"Show",vbMethod

Its clear? I want not to put an object parameter into the callbyname function, but a string.
It is possible?

Thanks a lot
 
You'll have to put the names of the forms and form objects in arrays and do your own look up. If you know what method you are going to use then you will not need CallByName e.g.
FormInArray(I).Show
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top