Problem with to-block
[1/2] from: chrismason::ukf::net at: 19-Nov-2002 8:42
Hi
I am having problems converting a string to a block! type, each time the first character
is a number the
script fails with invalid decimal error.
I am using the beta release of view from Rebol.com
The code segement is:
file-path: to-block replace/all file-path "/" ""
file-path contains a url like http://127.0.0.1/index.html
The idea of the program is to cache a website, modifiying all links to work locally on
the machine.
Please help!
Chris Mason
[2/2] from: al:bri:xtra at: 20-Nov-2002 16:54
Chris Mason wrote:
> I am having problems converting a string to a block! type, each time the
first character is a number the script fails with invalid decimal error.
Try something like:
>> file-path: http://127.0.0.1/index.html
== http://127.0.0.1/index.html
>> parse/all file-path "/"
== ["http:" "" "127.0.0.1" "index.html"]
That splits up the URL into more obvious parts.
Andrew Martin
ICQ: 26227169 http://valley.150m.com/