Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox, rowsource 0, columncount 2
Message
From
17/10/2001 09:53:43
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Combobox, rowsource 0, columncount 2
Miscellaneous
Thread ID:
00569537
Message ID:
00569537
Views:
51
Hello,

I try to populate a combobox having the ROWSOURCETYPE 0 (none) and the COLUMNCOUNT 2 (I want to show two columns) using the ADDITEM() method.
The ADDITEM() method takes as third parameter the column (number) in which the item is added, but each call to ADDITEM() creates a new row even if I chose one time the first column and another time the second column.
So the result is odd, showing in the first row an item in the column, in the second row shoing an item in the second column:

THIS.ADDITEM("1", 1, 1)
THIS.ADDITEM("YES", 2, 2)

The second column should be the description of the values in the first column and must appear together in the same row.

How can I fill both columns in code without having a cursor, or array as controlsource, but simply adding the items in code? The help did not give me any clue about that.

Thanks for your help in advance.
Christian Isberner
Software Consultant
Next
Reply
Map
View

Click here to load this message in the networking platform