Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement