listbox.NoSelection return is

What is the return for listbox.NoSelection? I assume -1 but it’s undocumented. It might not have a return

Sorry for not even doing basic testing. I can’t even write mylistbox.NoSelection

I only found reference to PopupMenu for NoSelection @ docs:
http://documentation.xojo.com/index.php?search=NoSelection

Thanks. When I did an LR search, nothing showed. I saw it in listbox.lastrowselected I think

http://documentation.xojo.com/index.php?search=+lastrowselected ?

ListBox.NoSelection appears there:
http://documentation.xojo.com/api/deprecated/listbox.html#listbox-selectedRowIndex

Arthur:
What value returns listbox.alignmentsleft ?

[quote=497735:@Arthur Gabhart]What is the return for listbox.NoSelection? I assume -1 but it’s undocumented. It might not have a return
Sorry for not even doing basic testing. I can’t even write mylistbox.NoSelection[/quote]

it is just used because the code is easier to understand.
usually u write the class name and there you get this constant or a enumeration with elements.

It does since its an integer - at the very worst it has at least a default value
However it looks more like its defined as -1

File a bug report about the missing docs as it should be documented

Feedback request (https://xojo.com/issue/61051)>]<https://xojo.com/issue/61051>
I made it for Listbox, ComboBox, and PopupMenu