Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How does one prevent a form from being deactivated?
Message
From
04/10/2003 05:48:11
 
 
To
03/10/2003 10:24:57
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00834295
Message ID:
00835067
Views:
20
Bob,

I think I've solved it - just added at messagebox, 'Save changes?' Yes No (if there are any) in the forms Deactivate method. It's not as elegant as I'd hoped for, since the form being activated is on top, but it seems to work. Maybe I should try to put it in the LostFocus method instead.

Anyway thanks for all your help.


>>The form is being edited, data are not yet commited or reverted, the user clicks on some other open form and all hell breaks loose.
>>
>>I assume the last code to fire on the edited form would be the deactivate method? Could the activation of the other form be stopped here if there are uncommited changes, and if so, how?
>>
>>TIA
>>
>>Peter
>
>I just reread your question. Did you try NODEFAULT in the forms lostfocus or deactivate event? One of those should stop the default behavior from occuring.
>
>BOb
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform