Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling setfocus from text box giving error
Message
From
07/03/2002 15:53:26
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00629840
Message ID:
00629862
Views:
19
Thanks Sergy,

Just I checked this code giving same error.
thisform.label1.caption=""
If mamtp="C"
thisform.combo3.setfocus()
nodefault
endi
>You cannot call SetFocus() from Valid() but you can from LostFocus(). Don't forget to add NODEFAULT to prevent default VFP behavior.
If abc = tru
>   thisform.xyz.setfocus()
>   NODEFAULT
>endif
>
>>Hi,
>>On text lostfocus/valid event i am using certain validation If validation tru I want to skip 2 text box for this I am using
>>example
>>
>>If abc = tru
>>
>>thisform.xyz.setfocus()
>>
>>endif
>>
>>but this not going on desire control and giving error cannot call setfocus fromwhen,valid,range high,rangelow.....
>>
>>Any solution to solve problem...please.
Sajjad Ahmad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform