Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking the ZOrder status of a tabless page
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Checking the ZOrder status of a tabless page
Divers
Thread ID:
00380274
Message ID:
00380274
Vues:
61
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
Fil
Voir

Click here to load this message in the networking platform