###Keyword###
For...In...Next

###Description###
Enumerates elements in an Object collection or an array


###Syntax###
<b>For</b> &lt;$Variable&gt; <b>In</b> &lt;expression&gt;
	<i>statements</i>
	...
<b>Next</b>


###Parameters###
@@ParamTable@@
Variable
	A variable to which an element is being assigned
expression
	Must be an expression resulting in an Object, or an Array with at least one element
@@End@@


###Remarks###
The Variable will be created automatically with a LOCAL scope, even when MustDeclareVars is on.
If the expression is an Object collection with no elements, the loop will be skipped and the Variable will contain an empty string.
If the expression is not an Object nor an Array, the script stops with an error, unless a COM Error handler had been configured.

For...In...Next statements may be nested.

###Related###
<a href="With.htm">With...EndWith</a>, <a href="..\functions\ObjEvent.htm">ObjEvent (COM Error handler)</a>

###Example###
@@IncludeExample@@
