Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ActivePage question...
Message
From
16/03/2004 14:00:29
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
ActivePage question...
Miscellaneous
Thread ID:
00886812
Message ID:
00886812
Views:
51
Hi all,

I have method that does some validation, then sets focus to a field that fails a validation. In this particular instance, I have a pageframe within a pageframe, and when I issue and ActivePage = page#, it does show the proper page, but the tab is still on the previous page, i.e., the controls for the page I want to be on are shown, but the tab indicates I am on the previous page. Here is some example code.
IF This.cnPageframe1.ActivePage != 1
         This.cnPageframe1.ActivePage = 1
ENDIF
WITH THIS.cnPageFrame1.pgCustomer.cntCustomer.PageFrame
	.ActivePage = 2 &&The page in question
	.page2.cnShipVia1.txtIDNumber.SetFocus()
ENDWITH
There is a Refresh() call for the form that occurs at a point after this.

Any ideas????

Thanks in advance.
Next
Reply
Map
View

Click here to load this message in the networking platform