Archive: Retrieve current selected section index in .onSelChange


Retrieve current selected section index in .onSelChange
When user select/deselect a section, how to retrieve the index of the section in .onSelChange function?


Hi zjckwht!

I've attached my approach to find out which section has been changed by the user.

It relies on the fact that the .onSelChange is fired only after there has been a change. If this is not the case, index 0 might be returned without real reason. (I've no clue, if this can happen...?)

Probably there's a better solution out there. But it might be enough to solve your problem.

Have a nice day!

Cheers

Bruno


There is a better solution. Have a look at the attached file.

It shows if the section has been activated or deactivated as well.

Cheers

Bruno