Tech Tip: How to clear row highlight in list box programmatically
PRODUCT: 4D | VERSION: 19 | PLATFORM: Mac & Win
Published On: November 15, 2021
When working with a list box, sometimes the default highlight of a row may linger after performing some operations. This occurs when the row is left selected either by the user or programming. To clear the row of its highlight programmatically, use the command LISTBOX SELECT ROW in conjunction with the lk remove from selection constant. For example:
LISTBOX SELECT ROW(*; "myListbox"; $rowPosition; lk remove from selection) |
The above will remove the row selection in $rowPosition from myListbox and consequently remove the row highlight. This is useful when you want to temporarily reset the highlight of certain list box rows.