ClassMicrosoft.VisualBasic.Strings SyntaxDim result As Integer = InStr([start, ]string1, string2[, compare])
DescriptionThe InStr function finds the 1-based starting position of string2 within string1, optionally skipping the first few characters. If a match is not found, zero is returned. Usage at a GlanceIf string2 is empty or Nothing, the value of start is returned. See AlsoInStrRev Function |