General information
Category:
Forms & Form designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only