Re: Resetting Tabs
- From: Bob Keeney <bobk@xxxxxxxxxxx>
- To: ftcdev@xxxxxxxxxxxxx
- Date: Mon, 2 Jun 2008 12:19:48 -0500
On Jun 2, 2008, at 10:54 AM, Brendan Murphy wrote:
Bob Keeney wrote:
I'm working on a tab setting editor with the eventual goal of
making this is control. I've been able to parse the selected
paragraphs for their tab stops and list them properly.
When I delete tabs I'm getting an out of bounds error immediately
after I save the tabs back to the each selected paragraph.
What version of RB are you using? At first glance, it looks like
you are running into the redim problem. The only solution for the
redim problem is to upgrade to 2008r2.
I think I've track this error down. The
FTParagraph.CopyParagraphStyle method should have the following code
change:
FROM:
' Clone the tab stops.
for i = 0 to count
' Clone the tab stop.
tabStops(i) = tabStops(i).clone //Get this from itself. NOE!
next
TO:
' Clone the tab stops.
for i = 0 to count
' Clone the tab stop.
tabStops(i) = parent.tabStops(i).clone //Get this from the
parent paragraph
next
Hope that makes sense.
Bob Keeney
BKeeney Software Inc.
- References:
- Re: Resetting Tabs
- From: Brendan Murphy
Other related posts:
- » Resetting Tabs
- » Re: Resetting Tabs
- » Re: Resetting Tabs
- » Re: Resetting Tabs
- » Re: Resetting Tabs
Bob Keeney wrote:
I'm working on a tab setting editor with the eventual goal of making this is control. I've been able to parse the selected paragraphs for their tab stops and list them properly.When I delete tabs I'm getting an out of bounds error immediately after I save the tabs back to the each selected paragraph.
What version of RB are you using? At first glance, it looks like you are running into the redim problem. The only solution for the redim problem is to upgrade to 2008r2.
- Re: Resetting Tabs
- From: Brendan Murphy