Language Reference |
Executes a statement for each element of an object or array.
for ( variable in [object | array ] )
The for statement syntax has these parts:
Part Description variable A variable that can hold any of the elements of object.
object, array An object or array over which to iterate. statement The statement to be executed for each member of object. Can be a compound statement.
Before each iteration of a loop, variable is assigned the next element of object. It can then be used in any of the statements inside the loop exactly as if you were using the element of object.
When iterating over an object, there is no way to determine or control the order in which the members of the object are assigned to variable.
© 1996 by Microsoft Corporation.
|file: /Techref/language/asp/js/204.htm, 2KB, , updated: 2003/4/17 10:27, local time: 2019/5/27 03:35,
|©2019 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.piclist.com/techref/language/asp/js/204.htm"> Microsoft® JScript Language Reference </A>
|Did you find what you needed?|
PICList 2019 contributors:
o List host: MIT, Site host massmind.org, Top posters @20190527 RussellMc, David Van Horn, AB Pearce - UKRI STFC, Bob Blick, David C Brown, Allen Mulvey, Dwayne Reid, James Cameron, Jason White, Neil,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to www.piclist.com!