Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to close a form programatically before/at the Init-E
Message
From
08/07/1998 07:20:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00115175
Message ID:
00115213
Views:
13
Andreas,
release method requires first object inited. If you handle errors in de, DE loads before init, and you might be ever blocking the init to run. After your error handling, set a flag and let init run so it can return an .f. Or as an alternative do error handling in code before calling the form (no data, DE wouldn't load because tables in use etc, shared use and private datasessions could prevent much of the errors though).
Cetin

>Cetin,
>
>this doesn't work because the form will not be released and remains in memory.
>
>Andreas
>
>
>>>Hi,
>>>
>>>I want to close a form programatically before the user can interact with the form e.g. the form contains no data or an error loading the data environment handled by the error method.
>>>
>>>Unfortunately calling the THISFORM.Release method doesn't help.
>>>Calling this method in the activate or init event/method is ignored by the system.
>>>
>>>Thanks for any help.
>>>
>>>Andreas
>>Andreas,
>>In init "return .f." so form cannot init.
>>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