Page 1 of 1
Send a script to another stack with parameter
Posted: Thu Nov 08, 2018 7:16 pm
by cbarbal
Hi all,
How can I put quotation marks inside other quotes.
Code: Select all
send "showFinques "Search"" to cd "Finques" of stack "Lloguers"
Thanks in advance
Carles
Re: Send a script to another stack with parameter
Posted: Thu Nov 08, 2018 7:33 pm
by ClipArtGuy
From the dictionary under quote:
Use the quote constant to embed quotes in a string, and to refer to quotes in a script. You must use this constant because if you use the quote character itself, it is treated as the beginning or end of a literal string and causes an execution error.
This should work:
Code: Select all
send ("showFinques" & SPACE & QUOTE & "Search" & QUOTE) to cd "Finques" of stack "Lloguers"
Re: Send a script to another stack with parameter
Posted: Thu Nov 08, 2018 7:45 pm
by Klaus
Hola Carles,
not sure, but I think this will even work without quotes:
Code: Select all
...
send "showFinques Search" to cd "Finques" of stack "Lloguers"
...
If not, this works in any case:
Code: Select all
...
put "Search" into tParam
send "showFinques tParam" to cd "Finques" of stack "Lloguers"
...
Or just use:
Code: Select all
...
dispatch "showFinques" to cd "Finques" of stack "Lloguers" with "Search"
...
Best
Klaus
Re: Send a script to another stack with parameter
Posted: Thu Nov 08, 2018 8:08 pm
by cbarbal
The explample of ClipArtGuy and the three of Klaus work perfectly. I can only decide for one, but I know that it can be done in several ways
Now I will have the issue of exporting as Exel and various impressions.
Thanks to both of you
Carles