Works here. Try the attached patches. Save both somewhere and load "main.pd". The [bang< message should output $1's value (i.e. "1").
If those don't work for you, you might have some trouble with your number box. In that case, info on your OS, PD version and possibly also your Tcl/Tk versions would be useful, as the problem would be somewhere in there.
d.
AshK wrote:
yes that's exactly what I mean and I have tried that already but the number box remains empty.
Georg Holzmann wrote:
Hallo!
I couldn't find it in the doc. I have an abstraction with 2 arguments : [abstraction 1 2], inside the abstraction I send $1 to [print] and it returns 1. That's perfect but instead of the [print] I want a number box. When I try nothing happens. How can I get my variable in a number box?
I don't know if I understand you correct, but maybe you mean this:
[bang( | [f $1] | [numberbox]
LG Georg
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list