Add Quotes in a String with symbols and decimal numbers

    Dec 08 2019 | 5:23 am
    Hello. Maybe someone knows a workaround. I need to send a string by tcp which should look like this: send "sp 3.16 at $1"
    $1 is a variable, that why i need to add the quotes after setting the variable. But if i use 'tosymbol' object it adds two zeros to my executor address (sp 3.1600)... that's not working for me.
    Would be great if somebody can help me.

    • Dec 08 2019 | 7:33 am
      Why would You need to add quotes at all ? If that is really necessary, for int sprintf symout sp 3.16 at %ld or in case variable is a float : sprintf symout sp 3.16 at %.2f %.2f limits float to 2 decimal places, change to whatever You want
    • Dec 08 2019 | 2:23 pm
      Hi and thanks for your fast reply. Sprint symout works very well. Never heard about. Also no tips in help file or manuall. Its usefull i think. I need to add quotes because otherwise the 'mxj tcpClient' does not understand my send command. So much thanks for your help. That was an annoying little problem after solving one of my major problems for my patch, what took 2 days. Thanks, thanks, thanks.