Search Method

Searches for the first occurrence of a substring in a String type parameter. Returns the index of the start of the substring. Returns -1 is the substring specified is not found.

Syntax

string.Search(StringToBeSearchedFor): Integer

where StringToBeSearchedFor is the name of the SubString parameter.

Example

Responsible = Cilas Evans = ...
SEvans = Evans
I1Search = 6 = Responsible.Search(SEvans)

Sample

KwrString.CATPart

 

Up Next