Hi all!
I am creating command in a script file and would to use quotes in its caption.
Is it possible without recurring to variables?
Quotes in captions
Re: Quotes in captions
Do you mean something like this?
Code: Select all
"abc's" text "abc";
"def's" text "def";
One of my scripts helped you out? Please donate via Paypal
Re: Quotes in captions
Something like this:highend wrote:Do you mean something like this?
Code: Select all
"abc's" text "abc"; "def's" text "def";
Code: Select all
"Backup to ""Desktop""|%desktop% : bak2desktop"
$local = %desktop%;
// Data e hora:
$tc = <date yyyy-mm-dd hh:nn:ss>;
$td = gettoken($tc, 1, " ");
$th = gettoken($tc, 2, " ");
// Fragmentar a hora:
$h = substr($th, 0, 2);
$m = substr($th, 3, 2);
$s = substr($th, 6, 2);
// Nome final do arquivo:
$n = $td $h . "h" . $m;
if (exists($local . \Backup\) != 2) { new($local . "\Backup", "dir"); }
copyas '* ' . "(bak " . $n . ")" . '.?', "$local" . "\Backup\";Re: Quotes in captions
Sorry a had meant double quotes... 
Re: Quotes in captions
Don't know if this is possible...
Just use single quotes instead
Just use single quotes instead
One of my scripts helped you out? Please donate via Paypal
Re: Quotes in captions
Indeed. I have tried a couple of things without success.highend wrote:Don't know if this is possible...
Just use single quotes instead
Re: Quotes in captions
I got it using variables this way:
Actually to avoid using variables, I use curved double quotes:
But you know when you put something in head and just don't give up..... 
Code: Select all
"_Initialize"
perm $p_tmpCaption1 = "Send to ""Backup"" folder";
/*
[...]
*/
"$p_tmpCaption1"
text OK;Code: Select all
"Backup to “Desktop”|%desktop% : bak2desktop"
$local = %desktop%;
XYplorer Beta Club