Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox driving me crazy....
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00641186
Message ID:
00641191
Vues:
14
A combobox can be bound to the numeric or character field only. Could checkbox be used instead?

>This shouldn't be so hard....
>
>What I'm trying to do is create a self-contained combobox class that will dropdown a Yes/No option, placing a corresponding .t. or .f. into a table. I created an array within my class called yesno(2,2) with the following values:
>
>(1,1) = .t.
>(1,2) = "Yes"
>(2,1) = .f.
>(2,2) = "No"
>
>My controlsource is tied to a logical field within a table and my boundcolumn is set to 1.
>
>When I try to use this combobox, I get the error of a data type mismatch. I have tried various arrays with only one column (logical) and every conceivable variation of bound/unbound, etc....I can get the thing to tell me that the array doesn't exist, but in every other case, it says "data type mismatch"
>
>What in the world am I doing incorrectly???
>
>As always, my humble thanks in advance.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform