🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1202

Re: Own parent

#1202
From: Dave_Saunders
Date: Sun, 15 Feb 2009 00:34
19 lines
1127 bytes
That's it.

myCell = myTable.cells[0];
myOtherCellRef = myCell.cells[0];
myOtherCellRef == myCell; returns true

but

myOtherCellRef.parent == myCell; also returns true

same thing happens with rows (and I assume columns).

I suspect that it has something to do with the fact that you can reference sets of cells or it could just be an accidental thing.

myCell = myTable.cells[0].cells[0].cells[0].cells[0];

also works and gives you the same cell and if you work your way up the parental chain it takes you four steps to get to the table.

Dave
Technical Details
Message-ID: <59b7ed7c.4@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
References: <59b7ed7c.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,459fb98cd9a2cd7b
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dave_Saunders@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Own parent
Message-ID: <59b7ed7c.4@webcrossing.la2eafNXanI>
Date: Sat, 14 Feb 2009 16:34:32 -0800
References: <59b7ed7c.-1@webcrossing.la2eafNXanI>
Lines: 21
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit