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.


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to