VideoInputIndex
Delphi
function VideoInputIndex (Value: string): LongInt;
C++Builder
System::LongInt __fastcall VideoInputIndex(System::UnicodeString Value);
C#
public int VideoInputIndex(string Value);
VB.NET
Public Function VideoInputIndex(Value As String) As Integer
C++/Qt
int VideoInputIndex (wchar_t *Value);
Returns the index of a given video input in the VideoInputs list.
The function accepts wild chars. E.g.:
VideoGrabber1.VideoInput := VideoInputIndex ('SVideo'); // selects the "SVideo" video input.
VideoGrabber1.VideoInput := VideoInputIndex ('SVideo'); // selects the 1st video input that begins with "SVideo".
VideoGrabber1.VideoInput := VideoInputIndex ('SVideo'); // selects the 1st video input that contains "SVideo".