[PD] ::: need help on feeding message boxes :::

zmoelnig at iem.kug.ac.at zmoelnig at iem.kug.ac.at
Sat Apr 28 09:37:55 CEST 2001


hi !

if "$1", "$2", etc in a message-box are quite different from "$1", "$2", ... in 
objects of abstractions.
in abstractions, they refer to the arguments passed to the abstraction when 
created.
in message-boxes they refer to the list that is passed into the message-box
meaning:

=-------
|1 two drei (
=-------
|
=-----------
|foo $3 $1 (
=-----------
|
=------
|print|
-------

will print something like "foo drei 1"
this can be used for your problem

-------
|r foo|
=------
|
=---------------------
|text $1 $2 $3 $4 $5 (
=---------------------
|
=--------
|text2d |
=--------

the major drawback of this method is, that expects to be fed with at least n 
arguments (n being the highest integer that was used in the form $<n>)
if you pass less arguments you will get an error
(so this can only be used when you have a fixed number of arguments, which is 
probably not what you want)

miller,
how about enabling a
=----
|$0 (
=----
which will output the  whole list ?

mfg.ds.sdt
IOhannes



More information about the Pd-list mailing list