The output below currently gives me the hex to ascii conversion for one and a string for the other.
How can I get “A” as the result for both of the statements below?
{
:put “\41”;
:local a “41”;
:put “\$a”;
}
Output:
A
\41
The output below currently gives me the hex to ascii conversion for one and a string for the other.
How can I get “A” as the result for both of the statements below?
{
:put “\41”;
:local a “41”;
:put “\$a”;
}
Output:
A
\41
Simply ask!
:global tmpHex value=41;
:global funHex2Char value=[:parse (":global tmpChar value=[:put \"\\".$tmpHex."\"]")];
$funHex2Char;
:put ("\\".$tmpHex." = ".$tmpChar)
Notice: when exec $funHex2Char display one “A” (in this case) on terminal, but if used on the script, do not print anything (except if the string are launced from terminal.
If I solved your problem, please add Karma!
Thank you! You solved my problem ![]()
you r just great
respect