Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox, rowsource 0, columncount 2
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Combobox, rowsource 0, columncount 2
Divers
Thread ID:
00569537
Message ID:
00569537
Vues:
53
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform