VideoNorms.FindIndex Method

Searches the collection for a given string. The string contains the name of a video norm.
Syntax:
Public Function FindIndex(Name As String) As Long
Parameter Description
Name

Specifies the name of the video norm for which to search in the collection.

Return Value:

If the property Name of an VideoNorm object is equal to the given string, the FindIndex method returns the index of this object in the collection. If the string is not found, the FindIndex method returns -1.

Example:

This example tests whether the "NTSC_M" video norm is available:

Dim VidNrmCol As VideoNorms
Dim Index As long
Set VidNrmCol = ICImagingControl1.VideoNorms
Index = VidNrmCol.FindIndex("NTSC_M")
If Index = -1 Then
    ' video norm not available
Else
    ' do something
End If
See also: VideoNorms, VideoNorm, VideoNorms.Count, VideoNorms.Item

<< ICImagingControl.VideoNorms