pos = FindStr(string$, substring$[, casesensitive, startpos, encoding])
substring$ in string$ and returns the position of the substring.
The position is returned in characters, not in bytes, starting at position 0
for the first character. If substring$ cannot be found, -1 is returned. The
optional argument casesensitive allows you to specify if the search should be
case sensitive. This defaults to the global case sensitive default mode set
using IgnoreCase(). See IgnoreCase for details.
Starting with Hollywood 4.5, you can also specify a starting position
for the search in the optional argument startpos. This position needs to
be specified in characters, not in bytes. Specifying 0 as the starting position means
start searching from the beginning of the string. This is also the default.
The optional encoding parameter can be used to set the character encoding
to use. This defaults to the default string encoding set using SetDefaultEncoding().
See Character encodings for details.
string$True for a case sensitive search or False for a case
insensitive search; the default is True or whatever default has
been set using the IgnoreCase() commandsubstring$ in string$ in characters or -1 if not found
result = FindStr("Hello World!", "World")
Print(result)
This will print "6" which is the position of the first char "W".