Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo box value
Message
De
20/06/2007 09:11:05
 
 
À
20/06/2007 08:29:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01234459
Message ID:
01234473
Vues:
8
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform