Home    New Features   |   Documentation   |   Testimonials   |   Source Code   

Searchie SearchCOM™
is a simple, yet powerful information retrieval ActiveX Control using the same proven nonindexing search engine technology that powers the popular end-user application, Searchopia. Now, all the software applications you develop can also quickly find any text information using the same friendly user-interface.

Searchie SearchCOM searches files or text strings for words and phrases using the logical boolean operators - And, Or, & Near (proximity searches). Originally written in VB, Searchie SearchCOM is now completely rewritten in VC++ ATL making it substantially faster. Plus, five more methods have been added and it no longer requires any VB runtime files. The only dependency file required is Atl.dll and it's small. Version 1.02 adds a new method called InstrFast which is a faster version of VB's own Instr function.

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.

May the sun always shine brightly on all that you seek.
Searchopia is a trademark of Sunrizen Software.
About The Author
Sunrizen Software ...expanding your horizons everyday.
Copyright © 2005 All Rights Reserved.