Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Createobject('myform') - form flashes breifly
Message
From
11/10/2002 20:10:34
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00710557
Message ID:
00710576
Views:
13
Chris,

I think declaring frmForm as public is putting a band-aid on the problem. Use DO FORM, or if you need an object reference for some reason (IOW, using createobject()), you can create a form manager class for this purpose. If you create the form manager object in your main program, it will be PRIVATE by default, which means it will be visible throughout.

Then from your menu, you would call something like oForms.newForm("form1") to load a new form. Of course you would have to design a forms manager class, but it would be worth the effort.

Instead of the forms manager being a standalone object, it could be an object that belongs to _SCREEN. I believe George Tasker takes this approach with his manager classes.

>Thank you also - Loy replied suggesting I try public frmForm and that seems to work - but I will also try your suggestions too...
>
>Thanks again!
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform