• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

double zeros

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

  • double zeros

    Hi..

    how to return double zeros.
    example = 00
    it always get 0 ==> 1 zeros .....

    i like to be like this
    {
    "success": true,
    "rc": 00
    }

    but i always get
    {
    "success": true,
    "rc" : 0
    }

    any idea?
    thx


  • #2
    What is the full version number of your Valence instance?

    Comment


    • #3
      I use valence 5.1 on AS400 v7.1

      thanks


      Comment


      • #4
        Can you provide the full version number? For example, 5.1.20170515.0, 5.1.20170607.0, etc...

        Comment


        • #5
          Hi
          I figure out how to do it

          string='{';
          string+= DQ+'success'+DQ+': '+'true' +', ';
          string+= DQ+'rc' +DQ+': '+DQ+'00'+DQ +;
          string+='}';

          i will send like this:

          {
          "success": true,
          "rc": 00
          }

          Comment


          • #6
            i meant it will send like this:

            {
            "success": true,
            "rc": "00"
            }

            Comment


            • #7
              Alternately, vvOut_toJsonPair would do this as well:

              Code:
              vvOut_toJsonPair('success:true,rc:00');

              Comment


              • #8
                I will try :
                vvOut_toJsonPair('success:true,rc:00');

                Thank you

                Comment

                Working...
                X