Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Checking the ZOrder status of a tabless page
I want to update the text box contents of a page on the AfterRowColChange Event of a grid only if the page with the text boxes is the top page in the pageframe. Here is a snippet of my code:
cEditPage = Thisform.Pageframe1.Page1.pgfCrossRef.pgEditRecord
If cEditPage.ZOrder(0)
With Thisform.Pageframe1.Page1.pgfCrossRef.pgEditRecord
.txtComp.Value = cross.vendor
.txtDate.Value = cross.date
endwith
endif
My thinking was that the If statement would check to see if the pgEditRecord page was on top and then update the text box values ONLY if it is on top. However, when I click on my grid pgEditRecord is brought to the front regardless of what page is currently there.
Why does my If statement change the ZOrder of the pgfCrossRef page frame?
TIA
Suivant
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