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.171 -- Release Build+4f4d518944b843c059d40b523747cd410a7c216d
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