List Switch control - FocusItem Property

Reference to the switch in the focus entry of the list

Member of List Switch control (PRIM_MD.ListSwitch)

Data Type - PRIM_MD.ListSwitchCurrentItem - Provides access to the switch of the current list item


The FocusItem property of a list Switch allows access to the individual items within the list entries.
A list Switch will only have a FocusItem if the FocusItem in the list has been set.


Testing for a focus item before accessing the value property of the item.
If (#Switch.FocusItem *isnot *null)
   If (#Switch.FocusItem.Check)

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020