# Function Reference

# _IEIsFrameSet

Checks to see if the specified Window contains a FrameSet

#include <IE.au3>
_IEIsFrameSet ( ByRef $oObject )

## Parameters

$oObject | Object variable of an InternetExplorer.Application, Window or Frame object

## Return Value

Success: | 1 if the object references a FrameSet page.
Failure: | 0 and sets the @error flag to non-zero.
@error: | 2 ($_IEStatus_COMError) - COM Error in Object reference 3 ($_IEStatus_InvalidDataType) - Invalid Data Type
@extended: | Contains invalid parameter number

## Remarks

_IEFrameGetCollection() does not specify whether the referenced frames are part of a FrameSet or whether they are iFrames.
If frames exist on a page and this function return False, then the frames are iFrames.

## Related

_IEFrameGetCollection

## Example

    ; Display the frameset example, get frame collection,
    ; check number of frames, display number of frames or iFrames present

    #include <IE.au3>
    #include <MsgBoxConstants.au3>

    Local $oIE = _IE_Example("frameset")
    Local $oFrames = _IEFrameGetCollection($oIE)
    Local $iNumFrames = @extended
    If $iNumFrames > 0 Then
        If _IEIsFrameSet($oIE) Then
            MsgBox($MB_SYSTEMMODAL, "Frame Info", "Page contains " & $iNumFrames & " frames in a FrameSet")
        Else
            MsgBox($MB_SYSTEMMODAL, "Frame Info", "Page contains " & $iNumFrames & " iFrames")
        EndIf
    Else
        MsgBox($MB_SYSTEMMODAL, "Frame Info", "Page contains no frames")
    EndIf

    _IEQuit($oIE)