Solved

serach engine

Posted on 1998-09-03
6
314 Views
Last Modified: 2010-04-30
I want to use search engines in my vb5.0 program.
How do i do that and where do can i get such an engine?
thanks
0
Comment
Question by:devashree
6 Comments
 

Author Comment

by:devashree
ID: 1432994
Edited text of question
0
 
LVL 2

Expert Comment

by:Wiz_of_Oz
ID: 1432995
what do u want to search???????
where data r located?????
be more exhaustive...
0
 
LVL 4

Expert Comment

by:mcix
ID: 1432996
Are you referring to an Internet Search engine?
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:devashree
ID: 1432997
Not internet search engine I am talking about the usual find and replace sort as in any word processer.(Find dialog box searches from the text written).
I want to find a word from the text which is displayed in the picture box which has been read from any txt file.

Thanks
0
 
LVL 1

Accepted Solution

by:
Aikema earned 50 total points
ID: 1432998
Check out what I found in the visual basic help file!  only
works on richtextboxes though.


Searches the text in a RichTextBox control for a given string.

Syntax

object.Find(string, start, end, options)

The Find method syntax has these parts:

Part      Description
object      Required. An object expression that evaluates to an object in the Applies To list.
string      Required. A string expression you want to find in the control.
start      Optional. An integer character index that determines where to begin the search. Each character in the control has an integer index that uniquely identifies it. The first character of text in the control has an index of 0.
end      Optional. An integer character index that determines where to end the search.
options      Optional. One or more constants used to specify optional features, as described in Settings.
Settings

The setting for options can include:

Constant      Value      Description
rtfWholeWord      2      Determines if a match is based on a whole word or a fragment of a word.
rtfMatchCase      4      Determines if a match is based on the case of the specified string as well as the text of the string.
rtfNoHighlight      8      Determines if a match appears highlighted in the RichTextBox control.
You can combine multiple options by using the Or operator.

Remarks

If the text searched for is found, the Find method highlights the specified text and returns the index of the first character highlighted. If the specified text is not found, the Find method returns –1.
If you use the Find method without the rtfNoHighlight option while the HideSelection property is True and the RichTextBox control does not have the focus, the control still highlights the found text. Subsequent uses of the Find method will search only for the highlighted text until the insertion point moves.

The search behavior of the Find method varies based on the combination of values specified for the start and end arguments. This table describes the possible behaviors:

Start      End      Search Behavior
Specified      Specified      Searches from the specified start location to the specified end location.
Specified      Omitted      Searches from the specified start location to the end of the text in the control.
Omitted      Specified      Searches from the current insertion point to the specified end location.
Omitted      Omitted      Searches the current selection if text is selected or the entire contents of the control if no text is selected.
0
 

Author Comment

by:devashree
ID: 1432999
Thanks, but this solution was there with me. I wanted a readymade search engine.Something which is used with director6 etc. And i am bound to use textbox only i cannot use rtfbox.
If you can help me it will be nice.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question