Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controlling another form from current form
Message
From
02/11/1999 16:23:14
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00284853
Message ID:
00285742
Views:
23
>Ok, I create an object in FormA in the init procecedure as following
>
>&&FormA.init
>oform = createobject('cls_timerform')
>
>As soon as my FormA init procedure ends, my object is destroyed. oform has a timer that I am trying to keep go until I oform.release(). How do I keep the object (oform) alive until I am ready to release it? Thaks for the reply
>
>
>Nick Patel

Either make oform a PUBLIC variable (not really recommended) or make oform a property of FormA. If you make it a property of FormA then you would create your timer object like this:

FormA Init:
this.oform = createobject('cls_timerform')
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform