Hi, 

Here is a different approach, using Replace. Not as 
efficient, but simple to use.

marker: copy "Insert Here"
new-text: copy "Insert This"
replace/all page marker new-text

or if you need to preserve the marker text

marker: copy "Insert Here"
new-text: copy "Insert This"
replace/all page marker join marker new-text

Cheers

Allen K

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 12, 2000 2:48 AM
Subject: [REBOL] [REBOL]HELP!! Inserting text problems Re:(2)


> Hi Ladislav:
> That did it!!
> I hope you don't mind, but later I will send you
> a break-down of the entire project. At the
> finish it may a good one to post or archive
> at rebol site, or you might want to use it.
> thanks as always
> tim
> At 07:40 PM 2/9/00 +0100, you wrote:
> >Hi, Tim,
> >
> >I see three issues in your code. The first one:
> >
> >if you want to insert something you can try:
> >
> >foreach txt insert_txt [
> >    fp: insert fp txt
> >]
> >
> >Ladislav
> >
> >
> >> I am attempting to insert text into a file:
> >> I have a series of strings defined thus:
> >> insert_txt: ["first new line" "second new line" "third new
> >line"]
> >> ;; at some point in the file, I attempt to insert
> >> ;; the strings with the following code:
> >> foreach txt insert_txt
> >> [
> >>   ;insert first fp newline
> >>   insert first fp txt
> >> ]
> >> with "insert first fp newline" commented out
> >> the elements are inserted
> >> in REVERSE order.
> >> Why is this happening? What am I doing wrong?
> >>
> >> with "insert first fp newline" enabled, nothing
> >> at all is inserted. Why is this?
> >> if I use the code: insert first fp "**",
> >> "**" is inserted.
> >>
> >> I would greatly appreciate anyone's help here!
> >> Thanks
> >> Tim
> >>
> >>
> >>
> >>
> >
> >
> 
> 

Reply via email to