🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15331

Re: VB.Net and InDesign CS different then InDesign 2.0

#15331
From: James_Mahood
Date: Mon, 08 Dec 2003 17:49
8 lines
1892 bytes
The most confusing thing when using VB.Net and InDesign CS is the object browser doesn't agree with the documentation. Many objects show up as a generic Object when they should be a specific object. Then when you try to access functions or variables that are part of the specific object, Visual Studio only shows a choice of the function GetType. Then you have to ignore this and type in the function or variable you want and if you type it wrong there is no compiler error. Then when you run the program you get run time errors. As long as most errors end up as run time errors the advantage of compiling is gone. It is just as easy to write a scrip where all errors are run time errors anyway.

Furthermore VB.Net requires, as Ole says, several additional files to support the EXE. If they had a native mode where all the support libraries can be included in the EXE like C++ it would be a different story. All the marshaling of variables and just in time compiling has not made an improvement that I can see. Programs run very slow and there are more run time errors and fewer compile errors.

Ole is right, VBScripts are probably the way to go. Single stepping and examining variables is still available with the debugger.

Thanks
Jim
Technical Details
Message-ID: <2ccec5cf.2@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccec5cf.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,28e19235f1e28fa8
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-12-08 10:08:03 PST
From: James_Mahood@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: VB.Net and InDesign CS different then InDesign 2.0
Message-ID: <2ccec5cf.2@webx.la2eafNXanI>
Date: Mon, 8 Dec 2003 09:49:34 -0800
References: <2ccec5cf.-1@webx.la2eafNXanI>
Lines: 23
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit