Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox driving me crazy....
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00641186
Message ID:
00641191
Views:
13
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform