Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] For/Next loop
- From: javascript@xxxxxxxxxx (Peter Brunone)
- Subject: [Javascript] For/Next loop
- Date: Thu, 31 May 2001 13:44:52 -0500
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@xxxxxxxxxxxx>
To: <javascript@xxxxxxxxxx>
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@xxxxxxxxxx
> http://www.LaTech.edu/mailman/listinfo/javascript
>
- References:
- [Javascript] For/Next loop
- From: Keith Levenson
- [Javascript] For/Next loop
- Prev by Date: [Javascript] For/Next loop
- Next by Date: [Javascript] For/Next loop
- Previous by thread: [Javascript] For/Next loop
- Next by thread: [Javascript] For/Next loop
- Index(es):