Page 1 of 1
calling a commad in card and stack with the same name
Posted: Tue Aug 24, 2010 6:00 am
by gwbasic
I created two command with the same name. The first one is located in the stack script and the other one is located in the card script.
In the button script:
on mouseUp
test
end mouseUp
The card script gets executed. How do I call the command named test which is located in the stack script?
Re: calling a commad in card and stack with the same name
Posted: Tue Aug 24, 2010 8:14 am
by jmburnod
Hi gwbasic
You can use the pass command
Code: Select all
on mouseUp --button script
test
end mouseUp
on test --card script
put "myTestCard" && the ticks
wait 500 milliseconds
pass test
end test
on test --stack script
put "myTestStack" && the ticks
end test
Best
Jean-Marc
Re: calling a commad in card and stack with the same name
Posted: Tue Aug 24, 2010 8:56 am
by jmburnod
You can also download the stack "messages hierarchy" of Richard Gaskin here
http://support.runrev.com/scriptingconf ... rarchy.zip
It explane difference between call, send etc...
Jean-Marc
Re: calling a commad in card and stack with the same name
Posted: Tue Aug 24, 2010 9:45 am
by gwbasic
Another question. How do I call a function/command in a card/stack, located in another stack?
Re: calling a commad in card and stack with the same name
Posted: Tue Aug 24, 2010 10:32 am
by jmburnod
Look at "insert script" on the dictionary and on the stack "message hierarchy"
Re: calling a commad in card and stack with the same name
Posted: Tue Aug 24, 2010 11:00 am
by Klaus
gwbasic wrote:Another question. How do I call a function/command in a card/stack, located in another stack?
For handlers use "call"
For functions check the Rev dictionary about "value" and see the user contributed notes at the bottom of that page.
Best
Klaus