Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PageFrame
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00118771
Message ID:
00118980
Vues:
22
>>>Is there a way to stop the user from moving from one page in a pageframe to another until certain conditions are met on the current page ?
>>> Example : Say you had a property on your form that is true or false with default value of .f., when the user completed certain functions on page1 the property is set to .t., then they could move to another page, if the property were .f. they could not move to other page.
>>>
>>>Right now I am using the Activate of each page to check the form property for .t. or .f. and if .f. warning the user and setting the Parent.ActivePage to page they came from so they are returned to complete whatever ... This also allows them to use other controls
>>>on form not contained in pageframe without firing off a warning.
>>>
>>>Thanks CB!!!
>>
>>Clark,
>>
>>Try setting the enabled property of each page whenever the form property is changed.
>
>Thanks Jim,
>
>I had headed in that direction based on reply from ED. I have been wanting to play around with assign, maybe this is a good place to try it out, for instance when form property value is changed, control pages that are enabled or not, what do you think ?

Clark,

Assign really doesn't have anything to do with this situation. If you set the other pages enabled property to .f. when you go into an add/edit mode and check the status of your fields in the last field on the form. If the business rules are violated, find the control, and setfocus to that control with an error message - do right!

John Harvey
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform