Article View: adobe.scripting.indesign
Article #16836Re: [VBScript] How does moveTo work?
From: Olav Kvern
Date: Thu, 31 Jul 2003 05:04
Date: Thu, 31 Jul 2003 05:04
25 lines
1171 bytes
1171 bytes
Alex--
The problem is that we don't support the VB standard ":=" assignment of optional parameters. We did, for a bit (in the 1.5x timeframe), and I wrote some examples that way, but it stopped working at some point.
So you need to use:
myDocument.Selection.Item(1).Move Array("2p","6p")
For "moveBy", you'd need to use something like:
myDocument.Selection.Item(1).Move ,Array("2p","6p")
Thanks,
Ole
Technical Details
Message-ID:
<1dea22ed.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!priapus.visi.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1dea22ed.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,7f15b4c91645e124 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-07-30 22:07:36 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!priapus.visi.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: [VBScript] How does moveTo work? Message-ID: <1dea22ed.0@WebX.la2eafNXanI> Date: Wed, 30 Jul 2003 22:04:21 -0700 References: <1dea22ed.-1@WebX.la2eafNXanI> Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit