calling a commad in card and stack with the same name
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
calling a commad in card and stack with the same name
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?
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
Hi gwbasic
You can use the pass command
Best
Jean-Marc
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
Jean-Marc
https://alternatic.ch
Re: calling a commad in card and stack with the same name
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
http://support.runrev.com/scriptingconf ... rarchy.zip
It explane difference between call, send etc...
Jean-Marc
https://alternatic.ch
Re: calling a commad in card and stack with the same name
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
Look at "insert script" on the dictionary and on the stack "message hierarchy"
https://alternatic.ch
Re: calling a commad in card and stack with the same name
For handlers use "call"gwbasic wrote:Another question. How do I call a function/command in a card/stack, located in another stack?

For functions check the Rev dictionary about "value" and see the user contributed notes at the bottom of that page.
Best
Klaus