Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to prevent a pageframe change?
Message
From
16/09/1998 14:31:02
Koos Veel
Gamma Research
Aruba
 
 
To
16/09/1998 12:50:38
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00137341
Message ID:
00137405
Views:
17
>>>Hello,
>>>
>>>We are using Visual FoxPro 5.0 and we are making a framework. For our security form we are using pageframes. On the first pageframe are textboxes wich values are bounded to a table wich has an optimistic table buffering. If one of the values is changed the InterActiveChange()-method will set a RecordChanged-property to .T. (true). We are using that property to check if there is any change in a textbox-value. If we want to change to another pageframe a messagebox will apear with the message "Discard changes?". If we say "no" we don't want to change pageframes. The problem is that we cannot prevent to show the second pageframe before it change back to the first one. We already tried to use the Dectivate Event()-method for the first pageframe, but it does not work. Is there another way to solve this problem? Thank you for your time.
>>>
>Forget UIenable.
*page.deactivate
>if messagebox("Are you sure",4)=7
>	nodefault
>	this.controls(1).setfocus()
>endif
Cetin

Thank you for your answer. The NODEFAULT is working fine.

Greetings,

Afier Appelman
Using the account of Koos Veel
Previous
Reply
Map
View

Click here to load this message in the networking platform