According to the docs on XTD:

"If the input number is longer than 8 digits, only the right 8 
digits are effective. If the input contains characters other 
than 0-9 and A-F, XTD returns 0."

This routine should do what you want:

  HEX='0102E84669'
  ASCII = ICONV(HEX,'MX0C')
  DECIMAL = 0
  FOR I = 1 TO LEN(ASCII)
     DECIMAL = DECIMAL * 256 + SEQ(ASCII[I,1])
  NEXT I
  PRINT "DECIMAL = ":DECIMAL


Larry Hiscock
Western Computer Services
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to