Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lock down a page in a pageframe
Message
De
21/04/2004 07:18:52
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00896682
Message ID:
00896801
Vues:
14
Hello Jim.

I have a pageframe on a form and I don't want the user to exit that page if they pressed the [EDIT] button I have on that page, but have not pressed the [CANCEL] or [SAVE] button. Is there a way to keep the page from changing if a condition exits?

I am pretty sure that this would work (UNTESTED!!!!!)

Code like this called from the click of edit button:


FOR EACH loPage IN This.Parent.Pages
IF NOT( Alltrim( loPage.Name ) == Alltrim( This.Name ) )
loPage.Enabled = .F.
ENDIF
ENDFOR


And code like this called from the click of the cancel and save buttons:


This.Parent.SetAll( 'Enabled', .T., 'Page' )
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform