Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement