###User Defined Function###
_IEFrameGetCollection

###Description###
Returns a collection object containing the frames in a FrameSet or the iFrames on a normal page or a single Frame or iFrame by index.

###Syntax###
#include <IE.au3>
_IEFrameGetCollection ( ByRef $o_object [, $i_index = -1] )


###Parameters###
@@ParamTable@@
$o_object
	Object variable of an InternetExplorer.Application, Window or Frame object
$i_index
	[optional] specifies whether to return a collection or indexed instance
		 0 or positive integer returns an indexed instance
		-1 = (Default) returns a collection
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	an object variable containing the Frames collection, @extended = Frame count.
Failure:	sets the @error flag to non-zero.
@error:	3 ($_IEStatus_InvalidDataType) - Invalid Data Type
	5 ($_IEStatus_InvalidValue) - Invalid Value
	7 ($_IEStatus_NoMatch) - No Match
@extended:	Contains invalid parameter number
@@End@@


###Remarks###
Although MSDN documents the return value for this function as a collection object, it cannot be looped through with a For...In...Next loop like a standard collection object.
You must instead step through the collection by index - see example.


###Related###
_IEIsFrameSet, _IEFrameGetObjByName


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