Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Difference between click and valid
Message
From
19/10/2004 03:42:28
 
 
To
19/10/2004 03:19:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00952513
Message ID:
00952520
Views:
7
The errormessage is quite clear, code in the Valid event can NOT set focus to another object. What about puitting the code in the Gotfocus event?

>hi all,
>
>i try to but this code under , at myform (page1 procedure valid) i get error message
>
>(Cannot call SetFocus from within a When, Valid, RangeHigh or RangeLow event )
>
>at procedure click it works.
>
>
>if  thisform.pageframe1.page1.text2.value="yes"
> thisform.Pageframe1.ActivePage = 4
> thisform.Pageframe1.Page4.Text1.SetFocus()
> endif
>
>thanks.
>m.qasem
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform