Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

serach engine

Posted on 1998-09-03
6
Medium Priority
?
319 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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 100 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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 process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

773 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