>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