🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17873

Re: VB question: type mismatch

#17873
From: Olav Kvern
Date: Sat, 10 May 2003 19:34
11 lines
1428 bytes
Ana--

Yes, VB is (or at least can be) an object-oriented programming language. But Stu is right--the deal with the PageItem object is that it's not implemented (at least as far as external clients are concerned) as a base class.

As my example showed, it's possible to declare a PageItem variable--it's just that you can't declare it as InDesign.PageItem. You've got to use either Object or (in VB6) Variant.

One of the reasons I don't like to declare all variables is that I'm often using VB to develop VBScripts. VBScript does not declare variables *at all* (everything is a Variant). If I omit all of the Dim statements, I can simply copy the body of the Sub to a text file, and save it as .vbs.

Thanks,

Ole
Technical Details
Message-ID: <1de9125c.5@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de9125c.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,2e58c5c8e33c7ae1
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-05-10 12:37:35 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: VB question: type mismatch
Message-ID: <1de9125c.5@WebX.la2eafNXanI>
Date: Sat, 10 May 2003 12:34:04 -0700
References: <1de9125c.-1@WebX.la2eafNXanI>
Lines: 20
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit