🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #21063

Re: VB and 2.0 Page number of a Table Cell

#21063
From: Olav Kvern
Date: Mon, 13 May 2002 23:04
17 lines
1742 bytes
Kathleen-- 

The one character contains the table, but it is not the table itself. You can get the table using a variety of references, including: 

Story.Tables.Item(1) Rem Given a reference to the paragraph containing the table: Paragraph.Tables.Item(1) Rem Given a reference to the character containing the table: Character.Tables.Item(1)  

To find a table in a given story, I would simply iterate through the stories looking for a table that matched whatever makes the table I'm looking for unique (this is a great use for the Label property).  

Or you could use search to find an unique string in the table, then get the parent of the found text (it'll be the cell), and then work from there. 

re: "But then what's the character following the table?" 

If there's no character following the table, you might consider adding a carriage return after the table (just so that you can use the trick I mentioned earlier of getting the next character). 

Thanks, 

Ole
Technical Details
Message-ID: <ef87b0d.9@WebX.aaQKaf7vad4>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!telocity-west!TELOCITY!hub1.meganetnews.com!news-hub.siol.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <ef87b0d.-1@WebX.aaQKaf7vad4>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,147f9b4dbdbb6c48
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-05-13 16:37:42 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!telocity-west!TELOCITY!hub1.meganetnews.com!news-hub.siol.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: VB and 2.0 Page number of a Table Cell
Message-ID: <ef87b0d.9@WebX.aaQKaf7vad4>
Date: Mon, 13 May 2002 16:04:22 -0700
References: <ef87b0d.-1@WebX.aaQKaf7vad4>
Lines: 29
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit