#1057 ListChoice fails if 16 items passed

4.1.1
closed
Mark Miesfeld
ooDialog (58)
none
5
2013-11-22
2012-03-16
fborch
No

The LISTCHOICE class and routine return "Error 88: Invalid argument" if 16 or more items passed when using ooRexx 4.1.0. on Windows XP. This works ok in ooRexx 3.2.on Windows XP and Windows 7
trace follows:
24 - d = ListChoice("Select","YourChoice", , .array~of(, "1",, "2",,
"3",,
"4",, "5",, "6",, "7",, "8",, "9",, "10",, "11",, "12",, "13",, "14",,
"15",, "
16"), ,,,"2")
>L> "Select"
>A> "Select"
>L> "YourChoice"
>A> "YourChoice"
>E> .ARRAY => "The Array class"
>L> "1"
>A> "1"
>L> "2"
>A> "2"
>L> "3"
>A> "3"
>L> "4"
>A> "4"
>L> "5"
>A> "5"
>L> "6"
>A> "6"
>L> "7"
>A> "7"
>L> "8"
>A> "8"
>L> "9"
>A> "9"
>L> "10"
>A> "10"
>L> "11"
>A> "11"
>L> "12"
>A> "12"
>L> "13"
>A> "13"
>L> "14"
>A> "14"
>L> "15"
>A> "15"
>L> "16"
>A> "16"
>M> "OF" => "an Array"
>A> "an Array"
>A> ""
>A> ""
>L> "2"
>A> "2"
3093 - size~width = size~width * self~factorX
3064 - self~lenx += self~getScrollBarWidth
182 - res = dlg~execute
24 - d = ListChoice("Select","YourChoice", , .array~of(, "1",, "2",,
"3",,
"4",, "5",, "6",, "7",, "8",, "9",, "10",, "11",, "12",, "13",, "14",,
"15",, "
16"), ,,,"2")
Error 88: Invalid argument
Error 88.907: Argument 1 must be in the range -2147483648 to 2147483647;
found
"52.5"

Discussion

  • Mark Miesfeld
    Mark Miesfeld
    2012-03-16

    Committed revision 7678. 4.1 fixes branch. Was already fixed in trunk

    This doesn't actually fail for me, it must depend on your video resolution. Nevertheless I see where the problem is from the output you posted and it is fixed in the next releae we are doing. 4.1.1 bug fix only.

    Thanks.

     


Anonymous


Cancel   Add attachments