Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reverse Order ListBox
Message
 
 
To
28/09/2005 16:12:55
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01054209
Message ID:
01054211
Views:
26
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform