First item highlighted:
_1_$ (dcl-ListBox-GetCurSel Std/ToolSelect/lstType)
0
Deselect first item:
_1_$ (dcl-ListBox-setCurSel Std/ToolSelect/lstType -1)
T
Query for item selected:
_1_$ (dcl-ListBox-GetCurSel Std/ToolSelect/lstType)
nil
ListBox has 19 items so this should return -1 saying no current selection.
Isn't nil representative of a ListBox with no items?
Good catch, Jim. This is now fixed for the next build.
Owen,
Was this fixed in 8.0.2.0?
I still get nil when no items selected.
Quote from: Jim Short on November 19, 2015, 05:22:44 AM
Was this fixed in 8.0.2.0?
No, 8.02 was released before this was fixed. There will be another update released either this weekend or early next week, and that one will include the fix.
Thanks Owen, works great!
Jim