>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