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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Referencing other forms within a .app

Status
Not open for further replies.

itc1

IS-IT--Management
Sep 18, 2003
65
US
We have built an .app and when we run the .app we are having trouble referencing the main form from another form within the project .app. The error we get is "object is unknown". Any ideas? Thanks.
 
How are you trying to reference it? Are you starting the form with the NAME xxx LINKED option? Do you have a forms manager that keeps track of all your forms?

Have you tried checking the _VFP.Forms collection?

Rick
 
itc1

I amke it a point when I design a small application to use the method suggested by Rick. Here is an example:

PUBLIC oMain, oSecond etc...
Do Form main.scx Name oMain
Do Form second.scx Name oSecond

Now I can reference the forms during the whole current session.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top