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

Started by Jim · 2015-10-12 20:45 UTC · 4 replies · SMF topic #2320

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.
author=Jim Short link=topic=2320.msg11719#msg11719 date=1447939364 wrote:
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