Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: stonysmithThere's not a simple way to do it.. the example below works, but is rather slow.
h=long(0)
i=0
t= 'MyHexString'.toUpper()
while i < strlen(t) {
c=substr(t,i,1)
q="0123456789ABCDEF".strFind(c)
h=h*16 + q
i=i+1
}
emit h as MyHexAsDecimal