Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to add elements in listbox
Message
De
03/07/1997 09:55:43
 
 
À
03/07/1997 09:41:42
Sonny Chouinard
CHCA Computer Systems Inc.
Lachenaie, Québec, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00038489
Message ID:
00038495
Vues:
38
>>I would like to add elements to the 2nd column using the method ADDITEM into a listbox define with 2 columns and rowsourcetype = 0
>>I have tried this commmand:
>>THIS.Parent.lstSelected.AddItem(THIS.Parent.lstSource.List(nCnt,2),2)
>>but does not function.
>>
>>In the additem method of lstSelected I have put nColumn in Parameters
>>
>>Can anyone help me?
>
>Have you tried the method AddListItem(Item, col, row) ?

I included cColumn in PARAMETERS of ADDLISTITEM method and tried this

THIS.Parent.lstSelected.AddListItem(THIS.Parent.lstSource.List(i,1),1)
THIS.Parent.lstSelected.AddListItem(THIS.Parent.lstSource.List(i,2),2)

The result is the same. The second column is added in the second row, not in
the second column.
Antonio Carlos Kleinübing
Systems Analyst
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform