Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close the VFP desktop?
Message
 
To
17/12/1998 17:19:26
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00166481
Message ID:
00168845
Views:
33

>
>I'm just thinking over an old problem which is actually solved, but I still don't like the way I solved it.
>
>I remember when I first started playing with VFP (3.0 beta), I had a modal form pop up before anything else, and it was CreateObject()ed; its .show method showed it, but it released because there was not any Read Events issued yet. The routine which ran this could have been called elsewhere in the app. I ended up issuing one extra Read Events (if there were no active windows already), but thought there was an easier way. It takes three extra lines of code as it stands now.

If I'm following this correctly, I don't believe what you've described is an issue anymore. For example my main.prg for an app I'm working on is similar to the following:
DO Login TO mlvalid     &&Modal Login Screen

IF !mlvalid
   RETURN
ENDIF

DO ProjectWizard TO mcproj   &&Modal Project Selection/Creation screen

IF ALLTRIM(mcproj)==""
   RETURN
ENDIF

{instantiate toolbar and display menu}
READ EVENTS
The 2 modal forms before the READ EVENTS work fine. Let me know if this helps or if I've missed the boat on your situation.
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform