Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox valid event not fired
Message
From
22/10/2005 10:11:43
 
 
To
22/10/2005 09:46:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01061387
Message ID:
01061390
Views:
15
>Fabio,
>
>I hope u know also the solution for an other problem i have with the combobox.
>I've placed an combobox in my grid. When I not select anything and entered to the next control the valid event is not fired. Because I need it to prevent that someone not make an selection and I get null values.
>
>Are you familiar with this.
>
>Regards,
>Jan

Jan,
you have two way:
1. use Style = 0 and control COMBO.Keypress

2. stop the grid at BeforeRowColChange

To do this there are various implementations;
a possible start point:
* combobox.Gotfocus
thisform.ActiveControl.Tag = 'StopNullValue'

* combobox.Lostfocus
thisform.ActiveControl.Tag = ''

* grid.BeforeRowColChange
IF m.this.Tag == 'StopNullValue' AND ISNULL(m.this.Value)
   NODEFAULT
ENDIF
Previous
Reply
Map
View

Click here to load this message in the networking platform