Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing a Modelss form from the init
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01263173
Message ID:
01263222
Views:
12
>>I have a modeless form for displaying status in a small program where I am calling a setup procedure from within the form init. If there are problems I need to close the form but I can't figure out how. The code to call the form is:
>>
do form Jcomm name xoMainForm Linked
>>read events
>>
>>I tried returning .F. in the init but the empty form just stays there. I tried clear events in the gotfocus but same thing.
>
>How about:
>
>do form Jcomm name xoMainForm Linked
>IF NOT ISNULL(xoMainForm)
>   READ EVENTS
>ENDIF
>
>
>**** Jcomm INIT
>IF SomethingBadHappened
>   RETURN .f.
>ENDIF
>
Many thanks. That did the trick.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Previous
Reply
Map
View

Click here to load this message in the networking platform