Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form's problem
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00216559
Message ID:
00217598
Views:
22
Nadya,

QueryUnload() is called when the X is clicked. By time Destroy() and Unload() fire there are no controls left they've already been destroyed. The only time I ever put code in Unload() is to RETURN the value for a modal form that is launched with do form xyz to theReturnValue. Is there a particular reason you are calling Hide()?

>David,
>
> I tested my form again and again and found new problems:
> First of all, I don't know what event occurs when a user clicks on close button of the form (I mean the close button on the right upper cooner of the form). I tried Destroy, Unload, other - all unsuccessfully. If I close my forms using special close buttons "Cancel" (thisform.hide()) all work, but if I close my form using the right cooner close button, my form unloads (I mean my second form, which I want just hide not unload):(.
>
> The second problem that I discovered is that sometimes (I have not catched the sequence of clicking yet) when I released my form I had an error message: "Can not access selected table". Now I place tableupdate() into unload method of my form (it was before in release method) and I don't see this error. But I am not sure that this is a solution.
>
> Thanks in advance
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform