🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19847

Re: Character count limit when iterating

#19847
From: Olav Kvern
Date: Mon, 18 Nov 2002 22:30
18 lines
1184 bytes
Chris-- 

It's a bug (or, actually, something to keep VB's Debug window from crashing)--you have to use For <counter> from <startValue> to <endValue>...Next, rather than For Each...Next. 

So, instead, use: 



For myCounter = 1 to myPara.Characters 
    Debug.Print myPara.Characters.Item(myCounter).TextContents 
Next 




Thanks, 

Ole
Technical Details
Message-ID: <1de6a6c4.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!newsfeed.gamma.ru!Gamma.RU!opentransit.net!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <57C203B6751238E56E447805B1ABBBE5@in.WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,e1d789c8ed14f71
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-11-18 16:54:20 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!newsfeed.gamma.ru!Gamma.RU!opentransit.net!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Character count limit when iterating
Message-ID: <1de6a6c4.0@WebX.la2eafNXanI>
Date: Mon, 18 Nov 2002 14:30:50 -0800
References: <57C203B6751238E56E447805B1ABBBE5@in.WebX.la2eafNXanI>
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit