1. How does one translate hexadecimal ascii strings to a value ?
- Posted by Richard Farnsworth <MRF0044%ROUGH at BIZET.MITS.COM.AU> Jun 27, 1997
- 668 views
G'day A Simple question: How does one translate hexadecimal ascii strings to a value in Euphoria ? Is there a library function I have overlooked ? Has someone done this before, or should I tackle this from first principles ? I am programming a Euphorian routine that converts DECnet address's to Physical address, and visa versa. I have previously written this in DCL for OpenVMS. DCL is the Digital Command Language. (Is this the first DCL to Euphoria port ?). DECnet BTW is a network protocol, much like TCP/IP but nicer . I have the DECnet to Ethernet translation working, but for the reverse, I require to convert an incoming Hex string (Entered by the user) to a value. Regards Richard Farnsworth Richard at mits.com.au --==**> Real Programmers Practice Safe HEX <**==--
2. Re: How does one translate hexadecimal ascii strings to a value ?
- Posted by Lee woo seob <wslee at HHI.CO.KR> Jun 27, 1997
- 660 views
> >How does one translate hexadecimal ascii strings to a value in Euphoria ? > Why don't you use value() routine as: sequence s s = value("#5D") -- s[2] will have the value translated. hope it helps. from Lee woo seob
3. How does one translate hexadecimal ascii strings to a value ?
- Posted by Ad Rienks <Ad_Rienks at COMPUSERVE.COM> Jun 26, 1997
- 661 views
>A Simple question: >How does one translate hexadecimal ascii strings to a value in Euphoria = ? A simple answer: Make sure you precede your string with a '#', and the function value(hex_string) will return the value in it's second element, if the he= x string is valid. Ad Rienks Ad_Rienks at compuserve.com