Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with a subclassed form called with createobject(
Message
From
25/09/1998 04:42:18
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
 
To
25/09/1998 04:38:50
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00140733
Message ID:
00140734
Views:
29
>Hi all,
>
>I just created a subclassed form which I want to use by createObject (). My problem now is, that the form vanishes directly after creation.
>I tried 'read events' and also switched WindowType between Modeless and Modal. Both had no effect.
>What do I have to look for?
>
>Thanks in advance

Hi, a couple of thoughts...

1) You must SHOW the form after you created it.

loForm = CREATEOBJECT( "myFormClass")
loForm.SHOW()

2) Are you creating the form in a sub-routine, and then the object variable is being released?

But, this type of thing should work.

LOCAL loForm
loForm = CREATEOBJECT( "myFormClass")
loForm.SHOW()
READ EVENTS
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform