Takes two parameters, Source, Match


This command is used to determine if a matching value is contained within the source value. If a match is found, this command returns the index value of where the matching value begins in the source value. If no match is found, this command will return zero. This value is returned as an integer.

Note: This function should not be used as input for an If condition, as the If conditions have built in operators for this purpose. See the Syntax and Builtin Values page for more details.

This is a similar command to InStr$, which returns the index of the matching value as a string.


[New] Source = 1234
[New] Match = 34

[New] Results = InStr$ Source, Match

Results is equal to 3. The indexed character of the Source where the Match begins.