Article View: adobe.scripting.indesign
Article #15243Minimum & Maximum Values in Dialogs
From: Dave_Saunders
Date: Sun, 14 Dec 2003 12:52
Date: Sun, 14 Dec 2003 12:52
9 lines
1472 bytes
1472 bytes
I just found out the hard way that if you use a minimum value when setting up an integerTextbox in a dialog (or any of the value-aware text or combo boxes), it automatically activates the maximum value, too. So, if you're working with positive numbers, you'd better set both values or, as I did, you'll have the dialog checking for values in the range 1 to 0. It took me longer than you might think to resolve this because if you setup the element in a single statement, the runtime error is rather generic, so it's not clear what's wrong. I finally twigged the problem when I moved setting the value to a second line of script and it gave me an explicit error message that indicated that it thought the maximum value was zero when I had not actually set a maximum value. This happened to me using JavaScript, but I expect it is an issue in any of the languages. Dave
Technical Details
Message-ID:
<2cceeb1b.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,8cc42dbeacfcd6e1,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-12-14 05:07:28 PST From: Dave_Saunders@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: Minimum & Maximum Values in Dialogs Message-ID: <2cceeb1b.-1@webx.la2eafNXanI> Date: Sun, 14 Dec 2003 04:52:46 -0800 Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit