strFind()
Purpose
Used to find the location of a string within another.
Description
Receives two strings, one to search and the other to locate. Returns the text character location of the search target within the supplied string.
Syntax
result = strFind( stringVar, to_find )
Arguments
result Position within string at which the search target appears (begins counting at 0)
stringVar The string being checked
to_find The search target
Example
stringVar = "FUZE"
to_find = "Z"
location = strFind( stringVar, to_find )
print( "Search target '", to_find, "' appears at character ", location, " in string '", stringVar, "'" )
update()
sleep(5)
Associated Commands
str(), strBeginsWith(), strContains(), strEndsWith(), strReplace(), stringHash()