Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo box value
Message
From
20/06/2007 09:11:05
 
 
To
20/06/2007 08:29:18
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01234459
Message ID:
01234473
Views:
9
>I have a combo box on my form. I set BoundColumn to 2. I am assigning RowSource in code to a cursor with two columns, second column is ID with integer values. In InteractiveChange this code: IF This.Value = 0 creates an error because combo's value is a char type. Shouldn't it be numeric?
>
>Thanks

First of all, set Combo.BoundTo=.T. (it is very important). After that Combo.Value will be determined by List property (i.e. by RowSource) but data type will be still character (because List property is character), i.e. you should check for VAL(combo.value)=0
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform