Listbox Item - EnsureVisible Property
Scroll a list so that the item is within the visible area
Member of Listbox Item (PRIM_LBIT)
Data Type - Boolean
Details
Setting EnsureVisible to True will move the item so that it is within the visible portion of the list.
Example
The example below shows a simple routine that looks through a list for a name.
When a match is found the item is moved in to view.
Mthroutine Name(Find)
Define_Map For(*input) Class(#Prim_alph) Name(#Name)
Selectlist Named(#List)
Continue If(#Surname <> #Name)
#List.CurrentItem.EnsureVisible := True
Leave
Endselect
Endroutine