🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16368

Re: [VB] Scripting Bug?

#16368
From: B Holt
Date: Thu, 18 Sep 2003 23:43
21 lines
1407 bytes
I dunno if this will help anyone or not, but here is how I got around the bug in VB.

------
Set myStart = myStory.Search("[B]")
Set myEnd = myStory.Search("[D]")

MSTART = myStart.Count
MEND = myEnd.Count

For i = MSTART To 1 Step -1

s = myStart.Item(i).Index
e = myEnd.Item(i).Index

Set myRange = myStory.Characters.ItemByRange(myStory.Characters.Item(e), myStory.Characters.Item(e + 2)).Item(1)
myRange.TextContents = ""

Set myRange = myStory.Characters.ItemByRange(myStory.Characters.Item(s), myStory.Characters.Item(s + 2)).Item(1)
myRange.TextContents = ""

Next i
Technical Details
Message-ID: <2ccd6d42.8@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news-out.superfeed.net!propagator2-maxim!news-in-maxim.spamkiller.net!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccd6d42.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,b6a6e8e82a9ca1ff
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-09-18 17:08:10 PST
From: "B Holt" <holtwj@mcmaster.ca>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news-out.superfeed.net!propagator2-maxim!news-in-maxim.spamkiller.net!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: [VB] Scripting Bug?
Message-ID: <2ccd6d42.8@webx.la2eafNXanI>
Date: Thu, 18 Sep 2003 16:43:12 -0700
References: <2ccd6d42.-1@webx.la2eafNXanI>
Lines: 24
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit