#980 ooDialog - ComboBox selectIndex() problem

ooDialog.4.2.0
closed
Mark Miesfeld
ooDialog (58)
5
2012-08-27
2011-02-03
Mark Miesfeld
No

The doc for the selectIndex() method of the ComboBox class does not document what the return actually is, other than saying the return is 0 on error or if the user specified 0.

However, the return in those situations is actually -1. Otherwise the return is the index of the newly selected item However, that return is the zero-based Windows index, when the ComboBox class uses 1-based indexes in all cases.

That is clearly a bug in my opinion.

Discussion

  • Mark Miesfeld
    Mark Miesfeld
    2012-02-03

    This fix will appear in the next major release of ooDialog, it will not be included in an ooRexx bug fix release

     


Anonymous


Cancel   Add attachments