Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem cancelling form in init
Message
From
07/12/2001 09:56:52
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
07/12/2001 08:45:57
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00591072
Message ID:
00591128
Views:
32
This message has been marked as the solution to the initial question of the thread.
>Cetin,
>I tried it. I added 'read events' at the END of the form's init method (after everything else including 'dodefault()' but when I do that, the form is never instantiated. The form does does not exist as an object and I get the main vfp screen and menu, but no form.
>Tracy

Tracy,
I don't think you'd want to make it modal. Put read events in form.init itself BUT be sure there is also this.show before read events. In form's queryunload put clear events and you're done. In fact if this is a single form app, I wouldn't use a caller :) Form itself could make messages presented to user in case it wouldn't run at all. Or alternatively move form.init checks to caller and never call do form if it should return .f.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform