This more of JavaScript/ESTK 2.0 question, rather ID. I've a simple test file written in the morning (test case for one of my huge script ), wherein I am testing the index of first space in a string.
var myString = new String("This is my string."); $.writeln(myString.indexOf ("\x20")); //Returns 4
Outputs 4 and undefined //ESTK JavaScript console
Output 4 is of course understood is index value of space in string but what is "undefined". I do not see any variable which are initialized and left "undefined" in the snippet. I've no Indesign doc open (in fact InDesign CS3 is closed). Is it something related to "object specifier" meaning though there is no document open but ESTK Engine still includes the objects (DOM). //Just a thought
Can somebody shred some light on this and importantly how I can get rid of this (undefined bit) in my output.
TIA, --PC
PS: Dave Saunders page gave me some understanding but still would like to hear from the expert.
-- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/InDesign/Browse/ Manage your subscription: http://www.ListSearch.com/InDesign/
Jul 03
Peter Kahrel Re: What is undefined-- JavaScript/ESTK 2.0
Jul 03, 2010; 02:14
Peter Kahrel
Re: What is undefined-- JavaScript/ESTK 2.0
Jul 03
pankaj.c Re: What is undefined-- JavaScript/ESTK 2.0
Jul 03, 2010; 02:16
pankaj.c
Re: What is undefined-- JavaScript/ESTK 2.0
Jul 03
Peter Kahrel Re: What is undefined-- JavaScript/ESTK 2.0
Jul 03, 2010; 02:41
Peter Kahrel
Re: What is undefined-- JavaScript/ESTK 2.0
Jul 03
Dave Saunders Re: What is undefined-- JavaScript/ESTK 2.0
Jul 03, 2010; 05:33
Dave Saunders
Re: What is undefined-- JavaScript/ESTK 2.0
Jul 04
pankaj.c Re: What is undefined-- JavaScript/ESTK 2.0
Jul 04, 2010; 20:11
pankaj.c
Re: What is undefined-- JavaScript/ESTK 2.0
Jul 05
Dave Saunders Re: What is undefined-- JavaScript/ESTK 2.0
Jul 05, 2010; 04:49
Dave Saunders
Re: What is undefined-- JavaScript/ESTK 2.0
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!