Article View: adobe.scripting.indesign
Article #19597Re: VB InDesign Selection Frustration
From: Greg Brunet
Date: Mon, 02 Dec 2002 08:57
Date: Mon, 02 Dec 2002 08:57
5 lines
1545 bytes
1545 bytes
Scott: I prefer that style as well, but as you probably noticed, that doesn't seem to be the Adobe way <g>. As David mentioned, first you should test to see what the actual returned type is. Obviously, you'll need to get the return value in a variant for this testing. Also, in some cases, you may get different object types from some methods. In that case, you'll also need to load them (initially) into a Variant. Once you determine what they really are (and my code has Select Case Typename(vItem) in a number of places to do this), you can cast it to the proper type, and continue on from there with a strictly-typed object. Good luck, -- Greg
Technical Details
Message-ID:
<1de6d2f7.1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news-out.nuthinbutnews.com!propagator2-sterling!news-in-sterling.newsfeed.com!newspeer1.nac.net!news.stealth.net!news.stealth.net!newsfeeder.edisontel.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de6d2f7.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,b5829e63ab908ff4 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-12-02 01:07:33 PST From: "Greg Brunet" <gbrunet@sempersoft.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news-out.nuthinbutnews.com!propagator2-sterling!news-in-sterling.newsfeed.com!newspeer1.nac.net!news.stealth.net!news.stealth.net!newsfeeder.edisontel.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: VB InDesign Selection Frustration Message-ID: <1de6d2f7.1@WebX.la2eafNXanI> Date: Mon, 2 Dec 2002 00:57:48 -0800 References: <1de6d2f7.-1@WebX.la2eafNXanI> Lines: 13 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit