Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking the ZOrder status of a tabless page
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00380274
Message ID:
00380278
Views:
20
Can't you use .ActivePage to see if your page is on top?

>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
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform