Hi again,
Thanks Max for the help on my SFMArray stuff; got it working.
I need more help on prepending and appending to text.
Robert Purves in the March 1 posting gave a little demo on this.
The "munger" stuff works great on replacing my SFM tags with
RTF code.
I still have no idea on how to call the functions;
fn PrependToHandle(h, s)
fn AppendToHandle (h, s)
I get error messages like "string used when a number was expected"
and "expected and end here fn PrependToHandle ( h, s* )
"s" is defined as a string.
Here's the info from my previous posting;
In a previous post I asked;
How do I call the functions;
fn PrependToHandle( h as Handle, Insert as Str255)
fn AppendToHandle( h as Handle, insertMe as Str255 )
Can I call them from within fn ReplaceFormatMarkersByEquivalentRTF( textH as
Handle )
FB gives me a lot of errors about things already dim'd etc.
I want to prepend the RTFid$= "{
tf1\mac\deff2 "
Then call a FN that makes a font table from the fonts used,
Then call a FN that creates a stylesheet,
other FN's that calculate Indents, page layout info etc.
THEN replace the SFM tags.
Finally I need to append the final "}" to make it an RTF doc.
I still get errors like "string used when a number was expected"
and "expected and end here"
In fn AppendToHandle ( h, s )
---------------------------------------
So I need to prepend stuff after calling the functions that calculate
things like the font table etc.
Bob Bryce