Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't close the form in the init
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00488229
Message ID:
00488382
Views:
10
>This really feels dumb....buttt....I test for an available table in the init of a form, if not table..thisform.destroy. problem is, the form instaniates anyway. Please refresh my feeble brain.

As Bill said, returning .F. prevents the form from intializing. But I wanted to point out to you that Thisform.Destroy() does nothing but run any code you add to the Destroy() procedure. Thats because Destroy() is an Event, not a method that actualy does anything natively. In order to close a form, call its Release() method.
Previous
Reply
Map
View

Click here to load this message in the networking platform