indexOf()

Am I misunderstand how this works or is the a problem…

I get error ;
There is more than one method with this name but this does not match any of the available signatures.

lBreak = paragraph1.Text.IndexOf("/.", startPos)

"startPos=1

var lBreak as integer
while x < 5
lBreak = paragraph1.Text.IndexOf("/.", startPos)

g.DrawText(paragraph1.text.Left(lBreak-1),20,120,550)
startPos = lBreak+1
g.NextPage()

x=x+1
wend"

You switched the parameters. startPos should come first.

Kim,
Thanks… :flushed: