Solved

serach engine

Posted on 1998-09-03
6
306 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
Comment Utility
Edited text of question
0
 
LVL 2

Expert Comment

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

Expert Comment

by:mcix
Comment Utility
Are you referring to an Internet Search engine?
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:devashree
Comment Utility
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
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now