[Oberon] Program ? Texts.Replace(T, beg, end, Bufr);

cglur at onwe.co.za cglur at onwe.co.za
Sun Aug 11 20:54:14 CEST 2002


cglur at onwe.co.za wrote:
> > 
> > I can't see how to use the facilities of Texts.Mod to
> >    Texts.Replace(T, beg, end, Bufr);
> > because I can't see how to pre-load Bufr.

Greg Haynes wrote:
> VAR W: Texts.Writer;
> 
> ....
> Texts.OpenWriter(W);
> 
> Texts.WriteString(W, "some string");
> (or other Texts write procedures for chars, integers, etc.)
> 
> W.buf is the buffer you need:
> 
> Texts.Replace(T, beg, end, W.buf);

Good, thanks.
But am I wrong in expecting Watson to 'link' to  "Writer = RECORD"  ?

I do:
 select Texts.
 execute Watson.ShowDef  ^
 search for "Replace"
 'hotLinkBlue'  "Buffer"
 which has a dead end at "BufDesc".

It might be interesting/valuable to have a formal definition/description
of Watson ?

-- Chris Glur.




More information about the Oberon mailing list