MindFusion.Reporting for Silverlight Programmer's Guide
InStr

Returns the position of the first occurrence of one string within another.

Syntax

 Copy Code

int InStr (
    string a,
    string b
)

Parameters

a
A string expression representing the string being searched.
b
A string expression representing the string being searched for.

Return Value

The InStr function returns the following values:

Parameter

Return Value

a is zero-length

-1

a is null

-1

b is zero-length

-1

b is null

-1

b is not found

-1

b is found within a

The position at which match is found.

See Also

Text Functions
InStrRev Function