Listbox Event Order vs. Properties - is it documented?

HI All,

I’ve run into an oddity in newer Xojo where the SelCount is not set when a CellClick event occurs. I don’t ever remember running up against this in RS or earlier Xojo in this project.

Should SelCount be 0 on entry to the CellClick event (assuming no rows were previously selected), or should it be 1 since we’ve clicked the row?

I would think it would be Zero going IN, and 1 AFTER it has left (but not during the click event)

I found it after reviewing an older build. I had removed some search code in this new variant and one of the lines in that removed code was:

Me.Selected(row) = Not Me.Selected(row)

So, it was me :).