ArcFM Responder Mobile Developer Guide
IndexOf Method (Parser)






The text to search. The text to search
The character value to search for. The character value to search for
The index to stat searching at. The index at which to start the search
Searches a StringBuilder for a character Searches a StringBuilder for a character.
Syntax
'Declaration
 
Public Shared Function IndexOf( _
   ByVal text As System.Text.StringBuilder, _
   ByVal value As System.Char, _
   ByVal startIndex As System.Integer _
) As System.Integer
'Usage
 
Dim text As System.Text.StringBuilder
Dim value As System.Char
Dim startIndex As System.Integer
Dim value As System.Integer
 
value = Parser.IndexOf(text, value, startIndex)
public static System.int IndexOf( 
   System.Text.StringBuilder text,
   System.char value,
   System.int startIndex
)
public function IndexOf( 
    text: System.Text.StringBuilder;
    value: System.Char;
    startIndex: System.Integer
): System.Integer; static; 
public static function IndexOf( 
   text : System.Text.StringBuilder,
   value : System.char,
   startIndex : System.int
) : System.int;
public: static System.int IndexOf( 
   System.Text.StringBuilder* text,
   System.char value,
   System.int startIndex
) 
public:
static System.int IndexOf( 
   System.Text.StringBuilder^ text,
   System.char value,
   System.int startIndex
) 

Parameters

text
The text to search. The text to search
value
The character value to search for. The character value to search for
startIndex
The index to stat searching at. The index at which to start the search

Return Value

The index of the first occurence of value or -1 if it is not found. The index of the first occurrence of value or -1 if it is not found.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Parser Class
Parser Members

Send Feedback