Try something like this:

myblock: make block! 10

append myblock <REBELEMBEDLET VERSION=1.1>
append myblock <PROPERTIES>
append myblock rejoin["SIZE=" getsize1 {,} getsize2]
append myblock {BACKCOLOR=142,128,110}
append myblock "NOICONS=TRUE"
append myblock </PROPERTIES>

write/lines %MyFile.txt myblock

Andrew Martin
ICQ: 26227169 http://valley.150m.com/
-><-

----- Original Message ----- 
From: "iNetW3" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 10, 2002 3:22 PM
Subject: [REBOL] parser for rebel player 


> Hello Reboler's
> I completed a GUI parser for a java rebelet player
> (the java+activeX rebelet players' made allready)
> and i would like to know if anyone could tell me
> how to format what i print out one tag or key = value per
> line to a string or block to save as a file.
> example:
> print {<REBEL_EMBEDLET VERSION=0.1>
> <PROPERTIES>}
> PRINT rejoin["SIZE=" getsize1 {,} getsize2]
> print {BACKCOLOR=142,128,110
> NOICONS=TRUE
> </PROPERTIES>} etc.
> Calling print works but i want to save to a file.
> I need:
> <REBELEMBEDLET VERSION=1.1>
> SIZE=200x100
> BACKCOLOR=142,128,110
> NOICONS=TRUE
> </PROPERTIES> etc.
> but:
> append myblock {<REBELEMBEDLET VERSION=1.1>
> <PROPERTIES>}
> append myblock rejoin["SIZE=" getsize1 {,} getsize2]
> append myblock {BACKCOLOR=142,128,110
> NOICONS=TRUE
> </PROPERTIES>} etc.
> gives me:
> <REBELEMBEDLET VERSION=1.1>SIZE=200x100
> BACKCOLOR=142,128,110NOICONS=TRUE </PROPERTIES> etc.
> any answeres are welcome.
> 
> 
> -- 
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the 
> subject, without the quotes.
> 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to