Sunday, August 14, 2011

[Research] Visual Basic Functions - InStr

Visual Basic's InStr function has 3 required and one optional input parameter. It is declared like so;

InStr(startPosition, string1, string2, compare).

These are the starting position to search from, the string to search inside of, and the string you want to search for. The last parameter is an optional one, it specifies whether the string is searched for using a binary or text style. It returns an integer, displaying the location of the searched string inside the source string.

No comments:

Post a Comment