>>VFP50
>>NT Workstation 4.0
>>I have created a pageframe.
>>On one of the pages I created a button.
>>In the 's click() event I wrote:
>>NODEFAULT
>>name_of_next_page.ObjectName.Setfocus()
>>thisform.refresh
>>thisform.name_of_next_page.refresh()
>>It doesn't jumb to the next page when I hit the button.
>
>Setting focus to the control on another page does not automatically
>activate that page. You have to write in Click() somethig like
>
>this.parent.parent.ActivePage=myNextPageNumber
>this.parent.parent.MyNextPage.MyObject.SetFocus()
>
>Are you using PageFrame with no tabs?
>What is the reason to do it with Button?
>You can also set focus to ObjectINeed in Page Activate()
>
Nick,
I did the ActivePage=# thing and it worked. Thanks!!!
The form is actually an import wizard for a user.
All pages are disabled initially except the first.
As the user answers questions and makes corrections,
they hit the command button.
The next page has more questions\corrections to the
import.
Exactly like wizards perform.
Thanks again,
Gene
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement