Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setfocus
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00182267
Message ID:
00182310
Views:
11
>Pierre,
>
>From where are you doing this? You cannot issue a SetFocus from within a Valid event. You can do it in the lostfocus event but you must issue a NODEFAULT to stop the default setfocus that VFP does after the lsotfocus event. You can also return 0 from the valid to retain focus in the current control.

Pierre,

Jim is right. Do some thing like:
ex: Dans le Valid du text box.
if THISFORM.seekprod(this.value,"cbo1", "tmprecette1")
return .t.
else
return .f.
endif
Previous
Reply
Map
View

Click here to load this message in the networking platform