Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AddItem and ListBoxes
Message
 
À
03/08/1999 04:23:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00249129
Message ID:
00249164
Vues:
27
>I'm using a ListBox with RowSourceType of 0-None and so it needs to be populated with the lstBox.AddItem() method. My question is this: I can't figure out how (if it's even possible) to add a 2nd column to this. It doesn't seem to be working for me. I've tried this:
>
>THIS.AddItem('FirstOne', 1, 1)
>THIS.AddItem('2ndColumn', 1, 2)
>
>and this one:
>
>THIS.AddItem('FirstOne', 1,1, '2ndColumn', 1,2)
>
>Neither method apparently works. BTW, I have to use RowSourceType = 0 because this ListBox needs to use mover-bars.

Use AddListItem instead - it's for multi-column use. Otherwise your method #1 is fine...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform