Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to prevent a pageframe change?
Message
 
 
To
16/09/1998 12:34:27
Koos Veel
Gamma Research
Aruba
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00137341
Message ID:
00137470
Views:
18
Afier,

You can also set the other pages .Enabled property=.f. if you don't want them going to them.

Look at the GETFLDSTATE() function to tell if any fields have been changed, it's much easier than working with the InteractiveChange method.

>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.
df (was a 10 time MVP)

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

Click here to load this message in the networking platform