🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16850

Re: [VB] Alteration on Paragraph.TextContents isn't reflected in object model

#16850
From: Olav Kvern
Date: Thu, 31 Jul 2003 10:15
18 lines
1525 bytes
Jens--

Since you've actually removed the paragraph, you have effectively destroyed the existing paragraph object--so the paragraph displayed in the Watch window or Locals window is an invalid object.

To insert text into a paragraph without invalidating the paragraph object, use an insertion point--that way, you won't be removing the carriage return at the end of the paragraph (which is what tells InDesign that it's a paragraph). Something like:



myActualParagraph.InsertionPoints.Item(1).TextContents = Me.txtFillText.Text. 




If you do it this way, you'll note that the object stays up to date in the Watch and/or Locals windows.

Thanks,

Ole
Technical Details
Message-ID: <1dea2438.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!151.189.0.75.MISMATCH!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <370F0F6BE5E413811BC789EAB1A3127D@in.WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,1423a92aa3a5942
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-07-31 03:38:09 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!151.189.0.75.MISMATCH!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: [VB] Alteration on Paragraph.TextContents isn't reflected in object model
Message-ID: <1dea2438.0@WebX.la2eafNXanI>
Date: Thu, 31 Jul 2003 03:15:50 -0700
References: <370F0F6BE5E413811BC789EAB1A3127D@in.WebX.la2eafNXanI>
Lines: 21
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit