Preserving quotes when using sprintf with the text object


    Aug 09 2007 | 9:38 am
    Hi,
    out of curiosity, why do I have to do it as illustrated below to
    preserve quotes when adding text to the text object?
    Thanks,
    Trond

    • Aug 09 2007 | 4:47 pm
      I don't know. and why does the following happen?
      max v2;
      pelado
    • Aug 10 2007 | 5:39 am
      Yes, I was bumping into those versions as well along the way.
      Trond
      pelado wrote:
      > I don't know. and why does the following happen?
      >
      > max v2;
      > #N vpatcher 100 115 1034 581;
      > #P origin 8 0;
      > #P window setfont "Sans Serif" 9.;
      > #P window linecount 1;
      > #P message 86 271 14 196617 3;
      > #P message 55 153 14 196617 2;
      > #P message 419 234 14 196617 1;
      > #P message 80 153 237 196617 "\\How do I %s the quotes to change position?\\";
      > #P message 349 289 22 196617 set;
      > #P button 394 232 15 0;
      > #P message 90 195 154 196617 "\\How do I %s the quotes?\\";
      > #P message 112 269 35 196617 line 1;
      > #P message 266 314 221 196617 How do I %s the quotes to change "position? ";
      > #P newex 315 245 40 196617 t clear;
      > #P newex 265 278 40 196617 text;
      > #P newex 236 243 25 196617 t cr;
      > #P message 301 181 51 196617 preserve;
      > #P message 265 181 30 196617 keep;
      > #P newex 265 204 259 196617 sprintf My question: \\""How do I %s the quotes?\\"";
      > #P connect 0 0 3 0;
      > #P connect 1 0 0 0;
      > #P connect 2 0 0 0;
      > #P connect 11 0 4 0;
      > #P connect 0 0 4 0;
      > #P connect 8 0 4 0;
      > #P connect 7 0 4 0;
      > #P connect 3 0 4 0;
      > #P connect 5 0 4 0;
      > #P connect 10 0 6 0;
      > #P connect 4 0 6 0;
      > #P connect 9 0 5 0;
      > #P connect 0 0 5 0;
      > #P connect 9 0 10 0;
      > #P pop;
      >
      > pelado
      > --
      > http://www.pelado.co.uk
      >