Announcement

Collapse
No announcement yet.

debugPrintln outputs its parameters backwards?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • debugPrintln outputs its parameters backwards?

    debugPrintln outputs its parameters in reverse order.

    (eg) to displays PARAMETER1= PARAMETER2 debugPrintln must be coded as debugPrintln(PARAMETER2,"PARAMETER1= ");

    Is there a fix for this?

    Thanks
    Joe Miller

  • #2
    Re: debugPrintln outputs its parameters backwards?

    Joe
    You may want to post a working sample script that illustrates the issue as this is not apparent from your description of the problem
    Alex


    Originally posted by jcm21
    debugPrintln outputs its parameters in reverse order.

    (eg) to displays PARAMETER1= PARAMETER2 debugPrintln must be coded as debugPrintln(PARAMETER2,"PARAMETER1= ");

    Is there a fix for this?

    Thanks
    Joe Miller

    Comment


    • #3
      restatement of question

      I apologize for the absurd inexcusable way the question was worded. I checked it before posting it but obviously screwed up somewhere.

      Here is a restatement of the question

      The following two lines of code

      day_num=5;
      debugPrintln(day_num,"day_num=");

      display: day_num=5

      (i.e.) the two parameters are reversed in position

      Comment


      • #4
        Joe
        I can't explain why the output is reversed when using a comma to concatenate the items in the debug statement.
        Regardless you can concatenate the items using the + operator ie
        debugPrintln("day_num="+day_num);
        which will return them in the correct order
        Alex


        Originally posted by jcm21
        I apologize for the absurd inexcusable way the question was worded. I checked it before posting it but obviously screwed up somewhere.

        Here is a restatement of the question

        The following two lines of code

        day_num=5;
        debugPrintln(day_num,"day_num=");

        display: day_num=5

        (i.e.) the two parameters are reversed in position

        Comment


        • #5
          Thanks Alex,

          I never thought of that solution. Makes it much less cumbersome to use debugPrintln.

          Comment


          • #6
            Joe
            You are welcome
            Alex


            Originally posted by jcm21
            Thanks Alex,

            I never thought of that solution. Makes it much less cumbersome to use debugPrintln.

            Comment

            Working...
            X