[Javascript] For/Next loop
Peter Brunone
peter at brunone.com
Thu May 31 13:44:52 CDT 2001
Keith,
It looks like you have an Esperanto-type hybrid VBScript/JavaScript
construction here. JavaScript For... loops look something like this:
for (y=0;y<=5;y+1) { // the parameters are (initialization, test,
increment)
}
Unlike VBscript, there is no ending word in these statements; the braces
act as delimiters. AFAIK, there's no UBound function either, but you can
get around that.
See http://msdn.microsoft.com/scripting/ for a good explanation of the
necessaries in JavaScript/JScript.
Cheers,
Peter
----- Original Message -----
From: "Keith Levenson" <klevensonk at netscape.net>
To: <javascript at LaTech.edu>
Sent: Thursday, May 31, 2001 1:23 PM
Subject: [Javascript] For/Next loop
> Can anyone tell me what is wrong with this syntax? HTML editor is not
recognizing the Next, and getting "expected (" error.
>
> Thanks!
>
> /K
>
>
> for y = 0 To ubound(L2List,2)
> L2List[iCount] = new Level2(L2List(0,y), L2List(1,y), L2List(2,y));
> iCount = iCount + 1
> Next
> __________________________________________________________________
> Get your own FREE, personal Netscape Webmail account today at
http://webmail.netscape.com/
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript
>
More information about the Javascript
mailing list