VirtualStringArray.IFind(String, Array) Method

Top 

Description

Searches each element of the calling VirtualStringArray for a case-insensitive match of the stringToFind, storing the indices of the matched elements in an Array.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

Click here to see the documentation for this object in nanosecond timing precision mode.

 

Method Signature

VirtualStringArray.IFind(

String stringToFind,


Array indicesArray)

 

 

Arguments

stringToFind


Description:

The string or character to find in the calling VirtualStringArray.

 

 

indicesArray


Description:

Used to store the indices of the elements that match the stringToFind argument.

 

 

 

Return Value

Type:

number

 

 

Returns the number of instances of the specified stringToFind that were found in the calling VirtualStringArray. Also stores the indices of the matched elements in the indicesArray argument. Returns 0 if stringToFind is not found in the calling VirtualStringArray.

 

Syntax

myVariable1 = {"Test1", "Test2"}.IFind(myString1, myArray1);

 

 

See also

VirtualStringArray Object

VirtualStringArray.IFind