Hi.
I am having a bit of trouble with the following..
the symbol object doesn't seem to like any spaces in a message that it is sent.. It just symbolised the text up until the first space.
This is a problem because when using $1 to create a dyamic message you HAVE to have a space in the message!
i.e.
12->mynewcolor= $1 -> [symbol]
does anyone know how to get around this? (and in a way that is kind of user friendly?) is it possible to have a message using $1 without a space? i.e. mynewcolor$1 (i know this can be done with creation arguments, for a unique arrayname e.t.c.)
Thanks for any help Tom http://www.nullpointer.co.uk http://www.dividebyzero.org http://www.orphanrecords.co.uk ________________________________________________________ C:\AUTOEXEC.BAT C:\REM [Header] C:> C:>PATH=C:\PERL\BIN;C:\WINDOWS\COMMAND;\C:jdk1.2.2\bin ________________________________________________________
(all suffixes enabled)
Hi, nullpointer hat gesagt: // nullpointer wrote:
the symbol object doesn't seem to like any spaces in a message that it is sent.. It just symbolised the text up until the first space.
That's the way it is right now ;(
This is a problem because when using $1 to create a dyamic message you HAVE to have a space in the message!
i.e.
12->mynewcolor= $1 -> [symbol]
Excuse me, but I'm not sure, that I understand your message flow here.
You can do for example a
[nbx] -> [mycolor $1( -> [send mycolor]
or
[nbx] -> [symbol] -> [this is my $1 favourite color( -> [print]
or
[nbx] -> [this is my $1 favourite color( -> [print]
where [] are [objects] and [( are [messages( But a symbol can only hold one symbol.
does anyone know how to get around this? (and in a way that is kind of user friendly?) is it possible to have a message using $1 without a space? i.e. mynewcolor$1
$-variable in messages get only replaced, if the $-variable is at the start of the variable: $1-mycolor will work, mycolor-$1 will not. For that you need the makefilename object or makesymbol from (?) zexy.
__ __
Frank Barknecht ____ ______ ____ __ trip\ \ / /wire ______
/ __// __ /__/ __// // __ \ / / __ \ ___\
/ / / ____/ / / / // ____// /\ \ ___\____ \
/_/ /_____/ /_/ /_//_____// / \ \_____\_____
/_/ _\
Hi,
The number one library in the universe, ZEXY, will let you do this:
[nbx] --- [mynewcolor= $1( --- [l2s] --- [symbol] --- [print]
l2s stands for list2symbol.
(you can omit the [symbol] before [print] but it's there to prove you get one symbol with "color= (number)".
cheers Juha
----- Original Message ----- From: "nullpointer" nullpointer@odessadesign.co.uk To: "pd-list" pd-list@iem.kug.ac.at Sent: Friday, April 12, 2002 7:37 PM Subject: [PD] spaces in messages to symbol object?
Hi.
I am having a bit of trouble with the following..
12->mynewcolor= $1 -> [symbol]
does anyone know how to get around this? (and in a way that is kind of
user
friendly?)