[REBOL] Dumb problem
From: mat:0wnerage at: 23-Apr-2002 23:14
Folks,
Stupid little thing I had to do today and couldn't think of an
elegant way of doing it. It's been bugging me.
Need function which take a two char string input and returns the
integer value. The problem here is I can't work out how to tell Rebol
that a string variable can be thought of as hex.
Here's my hacky solution;
StringToHex: func [
stringin [string!]
][
do rejoin["result: to-integer #{"stringin"}"]
result
]
Is there a proper way?
P.S. I sent a mail earlier that never seemed to get to the list. If
I'm not mistaken the real name isn't pulled out into an object with
the import-email function? Am I missing something or do I have to
parse it out of the full mail myself? (which is what I'm doing now)
Regards,
Mat.