Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NULL OBJECT
Message
From
04/12/1998 09:08:55
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00164035
Message ID:
00164038
Views:
15
>Hi, I'm experimenting with objects.
>I create a form object in my main program like this...
> PUBLIC oFrm
> oFrm = CREATEOBJECT("testfrm")
>where testfrm is referencing a defined class. I then call it from a menu as oFrm.Show() and it works fine. Once I close the form (using the control box) the object is NULL and can't be called again although it still is type "O". How do you keep the object public?
>
>DEFINE CLASS testfrm AS testform
> .. some procs
>ENDDEFINE
>
>thanks, tom

When you close a form, VFP really makes form's object .NULL. It's normal behaviour. If you want to keep form's object (on background) you may set oForm.visible=.F. and reset it back oForm.visible=.T. when necessary.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform