🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15082

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

#15082
From: James_Mahood
Date: Tue, 16 Dec 2003 17:12
21 lines
1853 bytes
Ole,

My only objection is the generic objects which essentially disabled the type checking in VB.Net which would show errors at compile time. With the generic objects all the errors occur at run time and the object browser doesn't give any clues. For example from the object browser one can see:

InDesign.DocumentPreference.PageHeight() As object

PageHeight is a generic object function with no clue in the object browser as to what data type it is. A much clearer expression that I have seen used elsewhere would be:

InDesign.DocumentPreference.strPageHeight() As String
InDesign.DocumentPreference.dblPageHeight() As Double

Another way of doing this would be to use variant parameters like this

InDesign.DocumentPreference.GetPageHeight(ByRef PageHeight As Double)
InDesign.DocumentPreference.GetPageHeight(ByRef PageHeight As Sring)
InDesign.DocumentPreference.SetPageHeight(ByVal PageHeight As Double)
InDesign.DocumentPreference.SetPageHeight(ByVal PageHeight As String)

I don't object to all the cleanup in the InDesign interface. It is good that it is getting maintained. The interface is also amazingly powerful. There is nothing that I can see that can't be done.

Jim
Technical Details
Message-ID: <2ccec5cf.14@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-16 09:37:57 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.14@webx.la2eafNXanI>
Date: Tue, 16 Dec 2003 09:12:48 -0800
References: <2ccec5cf.-1@webx.la2eafNXanI>
Lines: 29
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit