dcl-ListBox-GetCurSel returns nil with items in list. 8.0.1.0 ACAD2004

Started by Jim Short, October 12, 2015, 01:45:20 PM

Previous topic - Next topic

Jim Short

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?
Jim Short

owenwengerd

Owen Wengerd (Outside The Box) / ManuSoft

Jim Short

Owen,
Was this fixed in 8.0.2.0?
I still get nil when no items selected.
Jim Short

owenwengerd

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.
Owen Wengerd (Outside The Box) / ManuSoft

Jim Short

Jim Short