Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reverse Order ListBox
Message
 
 
À
28/09/2005 16:12:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01054209
Message ID:
01054211
Vues:
27
>Hi,
>
>I'm sure someone knows an easy way to do this. I want to be able to add items to a ListBox, but I want the latest added item to go to the top of the ListBox and not the bottom. Ideas? Thanks!
>
>Tim
From Help:
Control.AddItem(cItem [, nIndex] [, nColumn])



Parameters
cItem


Specifies the string expression to add to the control.
nIndex


Specifies the position where the item is placed in the control. If you supply a valid value for the optional nIndex, cItem is placed at that position within the control. If you specify an nIndex that already exists, the item is inserted at that position and all items below that item are moved down one position in the list portion of the ComboBox or ListBox control. If you omit nIndex and the Sorted property is set to True (.T.), cItem is added in alphabetic sort order. If you omit nIndex and the Sorted property is set to False (.F.), cItem is added to the end of the list portion of the ComboBox or ListBox control.

<g>
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform