Trying to get pd to interpret dollarsigns in message boxes when they are surrounded by quotations. for example the following patch will just print: print: tag is "$1" and id is 5
[sometext< [ 5
| /
| /
[packs s f ]
|
|
[tag "$1" and id is $2 <
|
|
[print]
I need the value in quotes because i'm trying to dynamically construct SQL queries. I know that if i put quotes in the initial 'sometext' message box and around the $1, it works.this doesn't help much because i still have to get quotations around a dynamic value at some point...
any suggestions?
-Seth
On Thu, Jan 27, 2005 at 06:12:42PM +0000, seth@street-vision.com wrote:
Trying to get pd to interpret dollarsigns in message boxes when they are surrounded by quotations. for example the following patch will just print: print: tag is "$1" and id is 5
[sometext< [ 5
| / | / [packs s f ] | | [tag "$1" and id is $2 < | | [print]I need the value in quotes because i'm trying to dynamically construct SQL queries. I know that if i put quotes in the initial 'sometext' message box and around the $1, it works.this doesn't help much because i still have to get quotations around a dynamic value at some point...
any suggestions?
although you can makefilename "%s" then use that as a $1: sprintf. think its in cyclone... you can create the entire query in one object including any spaces, quotes, etc....
-Seth
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list