Parse types - was Re: Sort by first part of line
[1/2] from: brett::codeconscious::com at: 8-Sep-2002 12:32
> parse/all data [
> some [
> h: any " " copy num integer!
I must have missed this or knew it and lost it from memory, but I didn't
realise you could parse string data by specifying a datatype (I knew it for
blocks of course - they are already loaded).
So:
>> parse {3} [integer!]
== true
but
>> parse {3-oct-2002} [date!]
== false
Could some one educate me on this please :^)
Regards,
Brett.
[2/2] from: rotenca:telvia:it at: 8-Sep-2002 14:27
Hi Brett,
> I must have missed this or knew it and lost it from memory, but I didn't
> realise you could parse string data by specifying a datatype (I knew it for
> blocks of course - they are already loaded).
Only integer! in string, i think.
I do not know how i know it :-)
---
Ciao
Romano