Article View: adobe.scripting.indesign
Article #17846Re: Method to convert "6p36" to 1.5?
From: Ana Greenspan
Date: Fri, 09 May 2003 00:09
Date: Fri, 09 May 2003 00:09
5 lines
1323 bytes
1323 bytes
I need to do this in VB. Basically I have text boxes allowing the user to enter measurements in the formats allowed by InDesign, I then need to take those measurement strings and in my script, convert them to Double so I can do calculation. I am doing it in kind of cheesy way by creating a dummy TextFrame, set its GeometricBounds to those measurement string and read them back in nice decimal form. When finish, delete the TextFrame. Serve the purpose but I thought there minght be a more "orthodox" way to doing this?
Technical Details
Message-ID:
<1de90e1d.1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeeds.sol.net!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de90e1d.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,c48e239d65fbe1e5 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-05-08 17:38:06 PST From: "Ana Greenspan" <mrsgreenspan@yahoo.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeeds.sol.net!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Method to convert "6p36" to 1.5? Message-ID: <1de90e1d.1@WebX.la2eafNXanI> Date: Thu, 8 May 2003 17:09:46 -0700 References: <1de90e1d.-1@WebX.la2eafNXanI> Lines: 10 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit