Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Filling a multi-column ListBox
Message
De
16/07/1997 18:10:59
 
 
À
16/07/1997 12:40:48
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00040242
Message ID:
00040310
Vues:
43
Elyse,

You really CANNOT do this with AddItem - it is my "pet peeve" with VFP and its documentation!

I strongly suggest that you use the List property to do what you need . List doesn't seem to be an "action" type function, but it actually is!
The undocumented "problem" with AddItem is that each invokation results in a new row being added *BY DESIGN*.
You could achieve success with AddListItem, but if you ever plan on deleting any of the rows, then STAY AWAY FROM THIS ONE TOO! List does anything most people need except to "maintain" an ItemID list.

Good Luck,
Jim N

>>>I have a 2-column ListBox with RowSourceType set to 0 (None). I am trying
>>>to fill it with 2 fields from a table using the AddItem method, but I can't
>>>seem to fill the second column. I want the list to be sorted. I had no
>>>problem filling a 1-column ListBox. Thanks for any help.
>>>
>>>Elyse
>>
>>Did you include the column parameter?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform