#995 Error 93 in SetListTabulators

Mark Miesfeld
ooDialog (58)

I have a program that uses SetListTabulators with a variable for the tab positions. It runs correctly in 41 and gets Error 93 in 4.2.


  • ldanver

    I left out a period. It should read 4.1, not 41.

  • Mark Miesfeld
    Mark Miesfeld

    Larry, sorry I didn't get back to this a little sooner.

    The truth is I'm a little undecided on what to do here. In ooDialog 4.2.0, the method behaves exactly as it has been documented to behave as far back as I looked. (3.1.0)

                                                                      V      |


    The following example creates a four-column list and adds a tab-formatted row to the list. The
    tabulator positions are 10, 20, and 30.
    MyDialog~SetListTabulators(102, 10, 20, 30)

    This syntax indicates that the single argument 'tab' can repeat any number of times. Each tab is documented to be a single number. The fact that your example worked in previous versions was a fluke. It should have failed.

    tabs = '30,90'

    This should fail because there is only a single argument, the variable tabs, and that variable is not a single number.

    This is the same as the max() function, which is documented in the Rexx Reference like this:

                    V           |


    This code using max() which is similar to what you used for setListTabulators() will also fail:

    n = 30, 90'
    biggest = max(n)

    Error 93.943: MAX method target must be a number; found "30,90"

    As I said, that it worked for you before was a fluke of the implementation. If the method had been documented to work the way you used it, then it would of course be a bug that it no longer worked.

    I could add code to special case your incorrect usage, but I don't want to document this method as working that way. ... so I'm still undecided here.

  • ldanver

    Sorry I didn't get back to you sooner, either. I agree that I didn't understand the documentation for the SetListTabulators and the fact that it worked in earlier releases is a whale's fin*. I have checked my programs that use this and have fixed all but a couple of them, so don't add any code for this. I think that you can close this to a senior moment or brain fade.

    • whale's fin = fluke




Cancel   Add attachments