Since no one else responded... Sjoerd Op 't Land wrote: > > Hello everybody, > > I'm making software which have to port messages via a "FileAccess" stack to > other stacks. These are the scripts: > > --of a button > on mouseUp > stuur "portExercise 2","Generic Elements","Exercises" > answer the result > end mouseUp > > --of this button's stack > on stuur par1 par2 par3 > open stack "/Mac HD/My Program/Generic Elements/fileaccess.mc" > send "stuur par1 par2 par3" to stack "fileaccess" > close stack "fileaccess" > end stuur > > --of the fileaccess stack > on stuur mess fold goal > lock screen > open stack ("/Mac HD/My Program/" & fold & "/" & goal & ".mc") > send mess to stack goal > put the result into mem > close stack doel > return mem > end stuur > > If I execute from the fileaccess stack > stuur "portExercise 2","Generic Elements","Exercises" > answer the result > > Then I get the exercise likewise I want. But if I do this from the button's > stack, the parameters don't get trought. What am I doing wrong. I think its > simple as a comma or quote, but I don't get in it. You're right - it's a small thing. The "send" command in the stack script is malformed for your purposes. par1, par2 and par3 are names of containers, but MC thinks their names are the parameter values. To make it work, it should read: --of this button's stack on stuur par1 par2 par3 open stack "/Mac HD/My Program/Generic Elements/fileaccess.mc" -- here's the original line: --send "stuur par1 par2 par3" to stack "fileaccess" -- here's the re-do: put quote & comma & quote into qcq -- for brevity below send ("stuur" && quote & par1 & qcq & par2 & qcq & par3 & quote) to stack "fileaccess" close stack "fileaccess" end stuur The param values need commas between them as you rightly show in the "mouseUp" handler above. I also enclosed each one in quotes because at least one of them has an embedded space; it's possible that the quotes will be interpreted as part of the value rather than as a delimiter, but HEY - I have to leave *something* in question! HTH. Phil > > Thanks in advance, > Sjoerd Op 't Land > > Archives: http://www.mail-archive.com/metacard%40lists.best.com/ > Info: http://www.xworlds.com/metacard/mailinglist.htm > Please send bug reports to <[EMAIL PROTECTED]>, not this list.
begin:vcard n:Davis;Phil tel;home:(503) 557-5656 tel;work:(503) 986-1215 x-mozilla-html:FALSE adr:;;;;;; version:2.1 email;internet:[EMAIL PROTECTED] fn:Phil Davis end:vcard