[REBOL] Re: parse rule for converting hex to decimal
From: compkarori:gma:il at: 23-Feb-2010 2:18
In that case, if the data is potentially suspect I would suggest this instead
foreach item exclude parse/all text "$," [ "" ] [
append result to-integer debase/base item 16
On Tue, Feb 23, 2010 at 6:10 PM, Gregg Irwin <gregg-pointillistic.com> wrote:
> Hi Graham,
> GC> The 'empty? test is also unnecessary as 'foreach already does that test.
> GC> foreach item parse/all text "$," [
> GC> =A0 =A0 =A0append result to-integer debase/base item 16
> GC> ]
> I think Luke was using it to handle the case where a field is empty.
> =A0parse/all text "$,"
> Without the test, you'll get entries for the empty fields.
> -- Gregg
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
Synapse - the use from anywhere EMR.