one of many solutions

parse/all text [
(result: make block! 5) some [
thru "$" copy x to "," ( append result to-integer debase/base x 16) skip
]
thru "$" copy x to end ( append result to-integer debase/base x 16)
]
result



On 22.02.2010 13:01, Şemseddin Moldibi wrote:
> is there anyone already write a parse rule to convert hexadecimal to
> decimal? here is my situation,
>
> text: {$FA,$20,$33,$0102}
> result: copy []
> rule: [(append value to result)]
> parse text rule
>
> result
>    
>>> [250 32 51 258]
>>>        
>    

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to