Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setfocus
Message
From
04/11/2004 04:53:48
 
 
To
04/11/2004 04:31:56
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 8
Miscellaneous
Thread ID:
00957987
Message ID:
00957990
Views:
8
>hi all,
>
>i'll try with this code under,but if the answer is rong
>it must setfocus to thisform.pageframe1.page1.text3.value,but i can't see where is the cursour at myform.
>
>DO CASE
>   CASE NOT BETWEEN(thisform.pageframe1.page15.text3.value,1,2)
>           =MESSAGEBOX("rong choises")
>              thisform.Pageframe1.ActivePage = 15
>              thisform.pageframe1.page15.text3.SetFocus  &&&
>
>   OTHERWISE
>           thisform.Pageframe1.ActivePage = 14
>            thisform.Pageframe1.Page14.Text1.SetFocus()
>ENDCASE
>
>
>thanks.
>m.qasem

Instead of using:
thisform.Pageframe1.ActivePage = 15
try using
thisform.Pageframe1.Pages(15).SetFocus()
HTH
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform