Sprintf %s %s %s


    Oct 31 2009 | 4:03 pm
    Hello,
    I hope someone knows an easy solution for this...
    I want to combine a lot of information in one coll index.
    But, when I use sprintf, there are no quotes around the symbols.
    I need these quotes because one symbol can be one or more words.
    And example is attached.
    Kind regards,
    Bas

    • Oct 31 2009 | 4:27 pm
      i imagine there is a more elegant way
    • Oct 31 2009 | 4:33 pm
      Hello Mike,
      Thanks for your quick reply.
      It works great, but the problem is that the information (like 8 numbers, words and lines) has to be in a specific order. It is collected in a different order from an user interface.
      So unfortunately I can't make it work with 'zl join'.
      The nice thing of sprintf is that I can collect all the info and the bang it through when inputting the index for the coll.
      Kind regards,
      Bas
    • Oct 31 2009 | 4:44 pm
      How about [mxj list.Queue]?
      best,
      Zachary
    • Oct 31 2009 | 6:59 pm
      Try putting the "quote" marks in the [sprintf] object, you'll need to escape them with the backslash character:
      [sprintf "%s" "%s" "%s"]
      lh
    • Oct 31 2009 | 7:01 pm
      i thought there was a way with sprintf!
    • Nov 02 2009 | 10:45 pm
      there is another way as well:
      [sprintf symout %s %s %s]
      this only works for single symbol output, though.
      jml
    • Nov 02 2009 | 11:45 pm
      Thanks for all you replies!
      This way works best for me "%s", since the order in which I put the information in is not 'from right to left'.
      Although I realised it might be possible with 'pack' as well.
      Kind regards,
      Bas