Properties:
1. Criteria As String - the words & phrases to be found.
2. Delimiter As Integer - character that separates words & phrases.
3. Logic As Integer - boolean logic to use.
4. WholeWord As Boolean - find whole words or partial words.
5. CaseSensitive As Boolean - case sensitivity.
6. NearCharsBefore As Integer - limits search proximity to preceding # of characters.
7. NearCharsAfter As Integer - limits search proximity to succeeding # of characters.
Methods:
1. SearchFileForward (sFilePath As String, Optional
lStartPos As Long, Optional sTerm As String) As Long
sFilePath - pointer to string containing path and file name of file to search.
lStartPos - position in string where search starts (optional).
sTerm - actual word or phrase that was found (optional).
Finds Search Criteria in the given file.
If lStartPos present, then returns next found position.
If lStartPos not present, then returns nonzero value if search criteria matches.
2. SearchFileReverse (sFilePath As String, Optional
lStartPos As Long, Optional sTerm As String) As Long
sFilePath - pointer to string containing path and file name of file to search.
lStartPos - position in string where search starts (optional).
sTerm - actual word or phrase that was found (optional).
Finds Search Criteria in the given file.
If lStartPos present, then returns previous found position.
If lStartPos not present, then returns nonzero value if search criteria matches.
3. SearchText (sText As String) As Long
sText - pointer to string to search.
Finds Search Criteria in the given string.
Returns nonzero value if sText matches search criteria.
4. SearchTextSet (sText As String) As Long
sText - pointer to string to search.
Sets the string to be searched with SearchTextForward or SearchTextReverse.
Returns True if successful.
5. SearchTextForward (Optional lStartPos As Long, Optional sTerm As String) As Long
lStartPos - position in string where search starts (optional).
sTerm - actual word or phrase that was found (optional).
Finds Search Criteria in the string set with SearchTextSet.
If lStartPos present, then returns next found position.
If lStartPos not present, then returns nonzero value if search criteria matches.
6. SearchTextReverse (Optional lStartPos As Long, Optional sTerm As String) As Long
lStartPos - position in string where search starts (optional).
sTerm - actual word or phrase that was found (optional).
Finds Search Criteria in the string set with SearchTextSet.
If lStartPos present, then returns previous found position.
If lStartPos not present, then returns nonzero value if search criteria matches.
7. InstrReverse (lStartPos As Long, sSource As String, sFind As String, Optional lNoCase As Long) As Long
lStartPos - position in string where search starts.
sSource - pointer to string to search.
sFind - phrase to find.
lNoCase - case sensitivity.
Works like VB's Instr function, but in reverse.
Returns previous found position.
8. InstrFast (lStartPos As Long, sSource As String, sFind As String, Optional lNoCase As Long) As Long
lStartPos - position in string where search starts.
sSource - pointer to string to search.
sFind - phrase to find.
lNoCase - case sensitivity.
Works like VB's Instr function, but faster.
Returns next found position.
|