Hello Rixon,
Create three new property on the form say
1. csetfocusobj1 = 'Thisform.pgf.page1.text1'
2. csetfocusobj2 = 'Thisform.pgf.page2.text1'
3. csetfocusobj3 = 'Thisform.pgf.page3.text1'
*--
Click of Add button
*--
LOCAL lnpage
lnpage = Thisform.pgf.activepage
DO CASE
CASE lnpage = 1
&csetfocusobj1..SetFocus()
CASE lnpage = 2
&csetfocusobj2..SetFocus()
CASE lnpage = 3
&csetfocusobj3..SetFocus()
ENDCASE
Bye
Jayesh
>I have a form with a pageframe with three pages. There is an edit button at the bottom of the form outside the pageframe. When the user clicks the edit button the focus should be set on the first object of the page that is active. How do I accomplish this?
>
>Thanks in advance.
- Jayesh