Programming Reference Manual
 
Syntax
 
long = stringclassobject.Find(sSearch[, Start][, Compare])
 
Description
Returns the position of the searched string in the text buffer. If not found, the function returns 0 (zero).
 
Parameter
Description
sSearch
The string that is searched in the text buffer of the StringClass variable
Start
Optional. The position in the text buffer from where the search will start. When omitted, searching will start at the first position of the text buffer.
Compare
Optional. The type of comparison that will be used during the search. Only standard VB compare types are allowed.
Default value = vbBinaryCompare.
See Also
Example
 
Sub Main
 
Dim myStr As New StringClass
 
myStr.Append "Test"
 
Debug.Print myStr.Find("s") '3
 
End Sub