Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with a subclassed form called with createobject(
Message
De
25/09/1998 04:42:18
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
 
À
25/09/1998 04:38:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00140733
Message ID:
00140734
Vues:
31
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform