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:
00217425
Views:
21
Fred,

>> 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 'X' kicks off a QueryUnload event. Put your code there. To prevent the default behavior of QueryUnload put a NODEFAULT in your code.

Thanks, all work fine now. It seems a little strange to me that without NODEFAULT I had troubles. If I put only one line of code into QueryUnload method: THIS.HIDE() ,
it doesn't work.

If I put 2 lines of code here:

NODEFAULT
THIS.HIDE()

It works fine.

I was pretty sure before that if I put some code into a method, this code replaces the code for parent class and the code of parent class never executes. So, was I wrong? I remember vagely that this issue already was discussed between Dragan and somebody else, but I don't remeber the answer.
==============================================================================

May I also ask about another very important problem? How can I save my report into text file? If I just try to write something like REPORT FORM myReport TO FILE myFile, myFile looks strange - populated with symbols, which I can not understand. Is there any easy solution?



>> 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
>
>The Unload event always triggers. The Release method is only called specifically when you call it, I think.

I think this method fires always too. First Unload, then Release.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform