Book Item - Position Property

Position of the item in the component list

Member of Book Item (PRIM_BOOK.BookItem)

Data Type - Integer


The Position property returns the physical location of the item in the visual list.
The top item in the list will have a position of 1.
Unlike Entry which changes rarely, Position changes whenever the list is sorted or manipulated in any way.  If the last item in the list is moved to the top, the Position of every item in the list would change.


Using position to organize list items. In this example, a newly added entry is moved to the top of the list.
Add_Entry To_list(#List)
#List.CurrentItem.Position := 1

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020