🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #14943

Re: JS: problem with changing numbers

#14943
From: Peter_Kahrel
Date: Sat, 10 Jan 2004 10:06
11 lines
1094 bytes
Figured this one out. Instead of

for(i = 0 ; i < f.length ; i++ )

it should be

for(i = f.length-1 ; i >-1 ; i--)

to process things from back to front. The moment numbers change from single digit two double digit (or the other way around), the indexes go haywire, which is no problem when you do things back to front.

Peter
Technical Details
Message-ID: <2ccee0cb.0@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccee0cb.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,2ed4b74287ad5cda
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2004-01-10 02:07:34 PST
From: Peter_Kahrel@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: JS: problem with changing numbers
Message-ID: <2ccee0cb.0@webx.la2eafNXanI>
Date: Sat, 10 Jan 2004 02:06:39 -0800
References: <2ccee0cb.-1@webx.la2eafNXanI>
Lines: 13
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit