🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #14761

Re: JS beginners help

#14761
From: Roy_Marshall
Date: Fri, 16 Jan 2004 13:27
23 lines
1408 bytes
I am trying hard not to get beaten here........

Acording to the site Dave gave me earlier (http://devedge.netscape.com/library/manuals/2000/javascript/1.5/reference/string.html#1193137 )

this is the correct syntax for an indexOf method
"Blue Whale".indexOf("Whale",5) // returns 5

My syntax is:-
myResult = myPound.indexOf("�",i);

I still ket the error "mypound.indexOf is not a function"

I can see it looks like a function string, but is not.

All I can see that i am doing differently is using a variable for the index position "i"

I have done a google search for a scripting book, but can only find Applescript for inDesign. i will buy one if there is one, I know I need to.

Any other syntax rule type sites would be handy.

Many Thanks

Roy
Technical Details
Message-ID: <2ccf45cf.28@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccf45cf.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f939a,613db9f5b5ffc527
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2004-01-16 05:37:40 PST
From: Roy_Marshall@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: JS beginners help
Message-ID: <2ccf45cf.28@webx.la2eafNXanI>
Date: Fri, 16 Jan 2004 05:27:25 -0800
References: <2ccf45cf.-1@webx.la2eafNXanI>
Lines: 27
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit