advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
ADDITEM Method Details
  ◄Summary►  ◄Details►  ◄Example►                ◄Contents►  ◄Index►  ◄Back►
──────────────────────────────────────────────────────────────────────────────
 [form.]{listbox | combobox}.ADDITEM item$ [, index%]
 
 Usage Notes
   ■ If index% is omitted, item$ is added to the proper sorted position if
     the Sorted property is True (-1), or to the end of the list if the
     Sorted property is set to False (0). See: ◄Sorted Property►
 
   ■ Since the Sorted property does not distinguish between uppercase and
     lowercase, you may need to write your own sort routine for a case-
     sensitive ADDITEM implementation. Use caution when specifying index%
     with ADDITEM when the Sorted property is set to True (-1). If index%
     adds an element to a specific location that violates the sort order,
     subsequent additions may not be properly sorted.
 
   ■ Use the List, ListCount, and ListIndex properties to access items
     displayed in the list box at run time.
     See: ◄List Property►  ◄ListCount Property►  ◄ListIndex Property►
 
   ■ ListIndex is set to -1 (no item selected) immediately after an ADDITEM
     operation.
 
   ■ Use the List property rather than the ADDITEM method to replace an item
     in a list box or combo box:
 
         Combo1.List(1) = "Students"