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.comICQ #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.