Article View: adobe.scripting.indesign
Article #19843Character count limit when iterating
From: Chris Haas
Date: Mon, 18 Nov 2002 21:11
Date: Mon, 18 Nov 2002 21:11
14 lines
1434 bytes
1434 bytes
When I iterate through each character in a paragraph I can only see the
first 256 characters. Is this a known limit? I'm iterating through each
character in order to pick up character styles to dump into an XML file
(unless someone has a better way?). Here's my code:
' myPara holds a reference to a paragraph Object
For Each myChar In myPara.Characters
Debug.Print myChar.TextContents & myChar.Index
Next
However, both of these return the correct info:
Debug.Print myPara.Characters.Count
Debug.Print myPara.TextContents
Technical Details
Message-ID:
<57C203B6751238E56E447805B1ABBBE5@in.WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,e1d789c8ed14f71,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-11-18 14:02:07 PST From: "Chris Haas" <ChrisH@OvationAdvertising.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Character count limit when iterating Message-ID: <57C203B6751238E56E447805B1ABBBE5@in.WebX.la2eafNXanI> Date: Mon, 18 Nov 2002 13:11:32 -0800 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit