Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using form as class
Message
 
 
To
16/09/1998 08:57:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00137231
Message ID:
00137481
Views:
17
Luc,

The source of the problem is that Ges_Prod is defaulting to a PRIVATE memvar of the function. When the function ends the memvar goes out of scope and thus destroys the form. So Ges_Prod will have to have a lifetime scope of the routine calling GesProd or assigned to some other global as Ed suggests.

>function GesProd()
> SET CLASSLIB TO LIBS\FORMS ADDITIVE
> Ges_Prod = createobject("forms.Ges_Prod",zn_Aff)
> Ges_Prod.show
>endfunc
>
>How can I do if I want that my form "GES_PROD" stay visible? I need to use it modeless...
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform