Article View: adobe.scripting.indesign
Article #10151Re: How to get characters count of a string type variable?
From: Andreas_Jansson
Date: Fri, 07 Jul 2006 08:50
Date: Fri, 07 Jul 2006 08:50
8 lines
1010 bytes
1010 bytes
var s = 'xxx'; s.length; Results in 3. This is however no InDesign question, just javascript. Did you in fact look for the number of character in a paragraph or somthing...? Try the .length property of the object in that case as well. Andreas
Technical Details
Message-ID:
<3bc0d668.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!193.190.198.17.MISMATCH!syros.belnet.be!news.belnet.be!news.stben.net!webcrossingReferences:
<3bc0d668.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,27346c63b5c41bf6,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Andreas_Jansson@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: How to get characters count of a string type variable? Message-ID: <3bc0d668.0@webcrossing.la2eafNXanI> Date: Fri, 7 Jul 2006 01:50:25 -0700 References: <3bc0d668.-1@webcrossing.la2eafNXanI> Lines: 10 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!193.190.198.17.MISMATCH!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing