skip to main content

Controls Reference : LIST-BOX : Properties : Insertion-Index

Insertion-Index
This numeric property is used to set the position of the newly inserted item. The Unsorted style must be set; if not, the items are alphabetically sorted. The new item is inserted right before the item number specified here. For example, with the value "1" the next item added to the List-Box control will appear at the top of the list, while with the value "0" the item will be inserted at the end of it.
 
Example - Modify a list-box to insert a new item on position 5
procedure division.
  modify screen-1-lb-1 insertion-index 5 
  modify screen-1-lb-1 item-to-add "new item"

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left