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
:global tmpHex value=41;
:global funHex2Char value=[:parse (":global tmpChar value=[:put \"\\".$tmpHex."\"]")];
$funHex2Char;
:put ("\\".$tmpHex." = ".$tmpChar)
you r just greatSimply ask!
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.Code: Select all:global tmpHex value=41; :global funHex2Char value=[:parse (":global tmpChar value=[:put \"\\".$tmpHex."\"]")]; $funHex2Char; :put ("\\".$tmpHex." = ".$tmpChar)
If I solved your problem, please add Karma!