Saving blocks question
[1/6] from: sharriff:aina:med-iq at: 26-Sep-2000 10:23
Hi guys!
Can any Rebol Guru tell me how to values captured form a HTML with REBOL
CGI in blocks in a file?
Sharriff Aina
med.iq information & quality in healthcare AG
Gutenbergstr. 42
41564 Kaarst
tel.: 02131-3669-0
fax: 02131-3669-599
www.med-iq.de
[2/6] from: al:bri:xtra at: 26-Sep-2000 21:46
Hi, Sharriff Aina. You wrote:
> Can any Rebol Guru tell me how to values captured form a HTML with REBOL
CGI in blocks in a file?
I'm fairly sure I don't understand your question. But does this help?
REBOL/View 0.10.34.3.1 25-Sep-2000
Copyright 2000 REBOL Technologies. All rights reserved.
>> block: make block! 0
== []
>> value1: "one"
== "one"
>> value2: "two"
== "two"
>> value3: "three"
== "three"
>> append/only block reduce [value1 value2 value3]
== [["one" "two" "three"]]
If it doesn't, could you ask your question again, but in very short
sentences, please?
Andrew Martin
Error: Out of stack space...
ICQ: 26227169
http://members.nbci.com/AndrewMartin/
http://members.xoom.com/AndrewMartin/
[3/6] from: sharriff:aina:med-iq at: 26-Sep-2000 11:40
Thanks a lot Mr. Martin, this is a push in the direction that I was looking
for :-)
Sharriff Aina
med.iq information & quality in healthcare AG
Gutenbergstr. 42
41564 Kaarst
tel.: 02131-3669-0
fax: 02131-3669-599
www.med-iq.de
[4/6] from: sharriff:aina:med-iq at: 26-Sep-2000 11:51
..the problem would be to parse
from %some-cgi-script.r -----> value1="one"
value2="two"
the block that IŽll like to save ------> [ one: [ value "one"
value "two"
]
]
Sharriff Aina
med.iq information & quality in healthcare AG
Gutenbergstr. 42
41564 Kaarst
tel.: 02131-3669-0
fax: 02131-3669-599
www.med-iq.de
[5/6] from: brett:codeconscious at: 26-Sep-2000 22:45
Hi,
I'm not sure if this helps you but you might like to look at the following
four things:
(1) --------------------------------------
http://www.rebol.com/library/script-cgi.html
(2) --------------------------------------
>> help decode-cgi
USAGE:
DECODE-CGI args
DESCRIPTION:
Converts CGI argument string to a list of words and value strings.
DECODE-CGI is a function value.
ARGUMENTS:
args -- Starts at first argument word (Type: any-string)
(3) --------------------------------------
>> help mold
USAGE:
MOLD value
DESCRIPTION:
Converts a value to a REBOL-readable string.
MOLD is a native value.
ARGUMENTS:
value -- The value to mold (Type: any)
(4) --------------------------------------
Type HELP WRITE and look at the /append refinement
...
If you want to a newly added block as a nested block inside the structure
you have shown then the simplest way will be to read or load the whole file,
do your insert and write it out again.
Hope it helps
Brett.
----- Original Message -----
From: <[Sharriff--Aina--med-iq--de]>
To: <[list--rebol--com]>
Sent: Tuesday, September 26, 2000 8:51 PM
Subject: [REBOL] Antwort: Saving blocks question Re:
..the problem would be to parse
from %some-cgi-script.r -----> value1="one"
value2="two"
the block that IŽll like to save ------> [ one: [ value "one"
value "two"
]
]
Sharriff Aina
med.iq information & quality in healthcare AG
Gutenbergstr. 42
41564 Kaarst
tel.: 02131-3669-0
fax: 02131-3669-599
www.med-iq.de
[6/6] from: sharriff::aina::med-iq::de at: 26-Sep-2000 13:50
>you have shown then the simplest way will be to read or load the whole
file,
>do your insert and write it out again.
>Hope it helps
>Brett.
Thank you very much Brett! IŽll do some research now..
Sharriff Aina
med.iq information & quality in healthcare AG
Gutenbergstr. 42
41564 Kaarst
tel.: 02131-3669-0
fax: 02131-3669-599
www.med-iq.de