2 Replies Latest reply: Aug 11, 2016 6:11 AM by Youness Ghanim RSS

    In QlikView or Sense what is equivalent to a String builder in Java?

    Youness Ghanim

      Hi all,

       

      In Java it is easy to drop this code inside a for loop and then get a nicely concatenated string.

       

      a = new StringBuilder()
        
      .append(a)
        
      .append(b)
        
      .toString();


      However I haven't been able to do the same in Qlik Sene. I am trying to achieve something like this:


      Let vMyVar = 'some text ';

      For i = 1 to 3

      vMyVar += i + Peek('City', $(i), 'weatherdata');

      Next

      Trace $(vMyvar );


      Where $(vMyvar) must be in the end => some text 1 France 2 Madrid 3 Lund


      I hope this is clear


      Many thanks