Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Valid in a coded combo box
Message
From
22/02/2007 05:19:43
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
21/02/2007 13:06:30
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01197686
Message ID:
01197888
Views:
14
>Hi. Thanks to the help of UT, I was able to successfully hand-code a combo box into my form (I wanted color options). Now I want some code to execute when leaving that combo (as in a valid). How would I do so, keeping in mind that I want to call other methods from this valid.
>
>Thanks, Randy

I think lostfocus is the ideal event to code that. ie:

*lostfocus
* call whatever
* show a dialog etc
if thisIsValid
* whatever
else && mimic valid returning .f.
NODEFAULT
this.setfocus()
endif

PS: Unlike valid you have right to invoke other controls such as a form, or setfocus to another control.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform