HBEFind returns a position in
the current processed file where sWhat is found. If
a string is not found, function returns 0.
Arguments:
sWhat - The string to be found in the file.
nFrom - A position in the file where search begins.
The character at nFrom is excluded from the search.
A first character in the file has number 1 and so on (indexes
start from 1 not zero). But if you want search from the first
character (begin of the file) you must set nFrom to 0. This
shift make possible using a value returned from this function
as parameter to this function again. See example. Parameter
nFrom is optional. If this argument is omitted, the function
uses 0.
bCase - Determine if searching is case sensitive.
Optional - false is default.
Examples:
' This script counts number of string
' occurrence in the file.
sWhat = "HTML"
count = 0
nWhere = HBEFind(sWhat,0,False)
While (nWhere)
count = count + 1
nWhere = HBEFind(sWhat,nWhere,False)
EndWhile
MsgBox "Count is " + count + "."
Remarks:
HBEFind fills a value FOUNDLEN
with length of string if string is found.