DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   JavaScript / DHTML / AJAX (http://www.daniweb.com/forums/forum117.html)
-   -   increment array (http://www.daniweb.com/forums/thread116847.html)

kishou Apr 1st, 2008 3:58 pm
increment array
 
how would i increase the array number?
like array[++0]?

phper Apr 1st, 2008 5:00 pm
Re: increment array
 
use a "for" statement.

eg:

for(i=0; i<10; i++){
// Do whatever here
}

This code will increment the "i" value by 1 each time until it hits 10 or whatever value specified.

Regards,
Alex.


All times are GMT -4. The time now is 3:21 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC