Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Page activation differences
Message
From
22/10/1998 19:17:55
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00149578
Message ID:
00149643
Views:
19
>I'm trying to have the focus go to a particular field when the user goes back to the first page of a series of them. How I do this is by putting a thisfield.setfocus command in the activate procedure for the page. It works fine if the user clicks on the page tab to activate it, but if I activate the page by programmatic means - thisform.pageframe1.activepage=1 - it doesn't work. There is no field at all that gets the focus. I would prefer to activate the page programmtically. Any ideas why I'm having this problem?
>
>Diana

Hi Diana,
Which version of VFP? VFP at least required you to create your own thisform.curpage variable because Fox got screwed up when you do the sorts of things your talking about. If you trace the execution of the code and watch the values of the variables like thisform.pageframe1.activepage that will help you find out what's going on. You could also try a more explicit setfocus like thisform.pageframe1.page1.myobj.setfocus()
HTH
Previous
Reply
Map
View

Click here to load this message in the networking platform