Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox, rowsource 0, columncount 2
Message
From
17/10/2001 09:57:13
 
 
To
17/10/2001 09:53:43
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00569537
Message ID:
00569541
Views:
17
This message has been marked as the solution to the initial question of the thread.
Hi!

Try to use AddListItem:

THIS.AddListItem("1", 1, 1)
THIS.AddListItem("YES", 1, 2)
THIS.AddListItem("0", 2, 1)
THIS.AddListItem("NO ", 2, 2)

HTH.

>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.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform