i am a student, learning VB 6.0 and want to creat a program that search data, the problem is that l cant seem to find the search code so that my program will run smoothly.
Can you please help???

That is such a general question that it cannot be answered. You might as well as "how do I write a program to do something". The answer depends on what type of data you are searching. There are different types of searches. If the data is unsorted then you have to do a linear (line by line) search. If the data is sorted then you can do a binary search. With a binary search you start by looking at the middle element. Then you search the upper or lower half depending on whether the middle element is larger or smaller than the item you are looking for. If you provide more details and show a little effort of your own then we can offer some help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.