Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read events on a form class ?
Message
From
02/11/2000 13:31:59
 
 
To
02/11/2000 13:28:08
Sony Joseph
Dovenmuehle Mortgage Inc
Schaumburg, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00437225
Message ID:
00437230
Views:
23
>Hi everyone,
>
>I have a form class with WindowType=0("ModeLess")
>
>I use the following code to instantiate in a program
>
> oFrm = NewObject('frmMyClass',"MyClass")
> IF TYPE('oFrm')='O'
> oFrm.Show()
> ENDIF
>
>In my Main.prg, I have
>
>
>Do Menu_program
>Read Events
>
>
>problem is : the class form just flashes on the screen on goes away. I know it is because the form is modeless (that is the way I want so that I can access other open forms too) and the read events statement. But I am not able to place that properly to keep the form on the screen. I know this will work, if the class is a form.scx.
>
>Any help would be appreciated.
>
>TIA

You don't say where the oFrm is getting created - is that in Menu_program?
If so, Menu_program is finishing processing, which is releasing oFrm, before the Read Events is called.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform