Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search for files in VB 6

Status
Not open for further replies.

NTesla

Programmer
Joined
Jul 19, 2002
Messages
146
Location
US
Is it possible to search for files inside Visual Basic. I'm writinig a program that I can use to keep track of my customers and a history of repair work I have done. I want to be able to search for a customers file.
 
I also need to test the first three characters entered in a text box. Would using the Right command do this.
 

NTesla, have you read FAQ222-2244 Item 15 yet?

Advanced Search this site for search directory. You can use the DriveBox, DirListBox, and FileListBox or the Dir Function or the FSO (File System Object (Scripting runtime)) or you can use FindFirstFile and FindNextFile API's.

And that would be Left not Right

Good Luck

 
vb5prgrmr, I don't understand your question about fag222-22244 or how if relates to my question.

However;
I have found an answer for both of my questions. Instead of testing the first 3 digits I tested another text box to get the input for the one in questions.

I also found code on the msdn site that did basically what I wanted it to. I just modified it to suit my needs.

Thanks
 
NTesla
Looks like the faq shows you how to show appreciation for helpful and/or expert solutions that have been given to you. I notice that you've asked loads of questions, and not marked any as being helpful or expert.
That's probably what vb5prgrmr was politely pointing out to you!

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
Johwm

I apologize for that. I always want to make sure the suggestion works before I responed back. I just some time s am unable to get back to show the proper apprciation. I willgo though my post and mark the helpful ones now.
 
NTesla

No apology needed [smile]

Good to see you going through your posts! People like to be recognised. Well done

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top