On Nov 14, 2006, at 2:52 AM, Marc Zeedar wrote:


On Mon, November 13, 2006 10:10 pm, Ian R wrote:


Perhaps you could post your style-massage code and let us have a look.


   InputText = me.StyledText

   me.Visible = FALSE

runCount = InputText.StyleRunCount - 1 // this is the line that is
being so slow


Are you SURE that's the line that's slow? In my StyledText tests it's the
"InputText = me.StyledText" line that's slow. My tests are on a Mac


Well, as I've mentioned, it's fine on a Mac. StyledText is definitely not super-fast but the delay is barely perceptible. You say "nearly a whole second" but I'm talking minutes. Also, there's a class out there called StyledTextFast which I've used a few times, which works well, though I don't know it would work faster on StyleRunCount... though if I had more time, I'd try it.

Since I couldn't get the remote debugger to work, I put in some msgBoxes like so:

msgBox "Setting InputText to me.StyledText"
InputText = me.StyledText

// ...second message pops up instantly...

msgBox "Beginning StyleRunCount"
runCount = InputText.StyleRunCount - 1

// ...minutes pass, the odd dog barks in the distance, and finally,

msgBox "Beginning Style Run Loop"

I don't know the intricacies of RB the way most of you do, but it seems like the issue is with StyleRunCount. I believe it because I've always had so many problems with the performance of things like ParagraphCount.

Ian



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to