Gemstone Common Library
Show/Hide TOC

# StringParserFindIndex Method

Finds the index of the first matching (or containing) field name

## Definition

Namespace: Gemstone.IO.Parsing
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.174 -- Release Build+aa37ec1cbeacbf32d632bf098b6401a4346e3db1
C#
View Source Request Example

    public static int FindIndex(
    	string fieldNameValueSought,
    	string[]? fieldNames,
    	bool matchCase = true,
    	bool contains = false
    )

VB
View Source Request Example

    Public Shared Function FindIndex (
    	fieldNameValueSought As String,
    	fieldNames As String(),
    	Optional matchCase As Boolean = true,
    	Optional contains As Boolean = false
    ) As Integer

C++
View Source Request Example

    public:
    static int FindIndex(
    	String^ fieldNameValueSought,
    	array<String^>^ fieldNames,
    	bool matchCase = true,
    	bool contains = false
    )

JavaScript
View Source Request Example

    Gemstone.IO.Parsing.StringParser.FindIndex = function(fieldNameValueSought, fieldNames, matchCase, contains);

#### Parameters

fieldNameValueSought String
  the field name to find
fieldNames String
  the string array of fields
matchCase Boolean (Optional)
  set to FALSE for case insensitive tests
contains Boolean (Optional)
  Set to TRUE to find index that CONTAINS the fileNameValueSought

#### Return Value

Int32

[Missing <returns> documentation for "M:Gemstone.IO.Parsing.StringParser.FindIndex(System.String,System.String[],System.Boolean,System.Boolean)"]

## See Also

#### Reference

StringParser Class
Gemstone.IO.Parsing Namespace