Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding multi column entry to a list box
Message
 
À
06/02/2002 15:35:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00616265
Message ID:
00616311
Vues:
27
>Hi All,
>
>I know this must have been asked a thousand times, but I'm gonna do it again. Is there a way to add a multi column entry to a listbox when the listbox type is 0 - None or 1 - Value?
>
>Thanks in advance for your help.
>
>Aloha,
>
>James

You can manipulate the listbox items manually in code with AddItem() and AddListItem() methods.

Also, you can easily create multicolumn listbox with RowSourceType = 1-Value by changing the properties in the Property Sheet.

listbox.ColumnCount = 3
listboc.ColumnWidths = "20,50,50"
listbox.RowSourceType = 1
listbox.RowSource = "1,Tree,Green,2,Sky,Blue,3,Soil,Black"

This will give you a listbox with 3 columns and 3 rows of data in it.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform