Article View: adobe.scripting.indesign
Article #2187Re: [CS3][JS] How to turn negative number in array into string
From: Tom_Tomasko
Date: Mon, 12 Jan 2009 02:18
Date: Mon, 12 Jan 2009 02:18
11 lines
1050 bytes
1050 bytes
Well, I think I have solved it. But I don't know why this solves it. I would think that in the above script all the variables would be numbers and not strings. But the data browser says they are strings. The solution is: var marginsLHand = [marginY1, Number(-marginX2).toFixed(4), marginY2, Number(-marginX1).toFixed(4)] If someone can explain why now all variables in the arrays are strings and not numbers, I'll be happy. Tom
Technical Details
Message-ID:
<59b77ce0.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b77ce0.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,fbee974edb43f64 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Tom_Tomasko@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: [CS3][JS] How to turn negative number in array into string Message-ID: <59b77ce0.0@webcrossing.la2eafNXanI> Date: Sun, 11 Jan 2009 18:18:17 -0800 References: <59b77ce0.-1@webcrossing.la2eafNXanI> Lines: 14 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit