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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADir?

Status
Not open for further replies.

Napoleon99

Programmer
Sep 20, 2002
11
US
ADIR() is a visual foxpro function which
will place information about files into an array
and then returns the number of files. Is there a similar
function in VB?
 
I am not aware of an simple solution like that. You can check out the File System Object. It has several different objects that will do what you want to do. If you need something specific, please repost and tell us what specifically you want.
 
Thank you for the response,

I have been using the file system controls so far
to do directories search in VB projects.
The problem with those controls is you have to place them all on a form and then tie them together each time you need to do recursive directory search. May be I should create an
activeX control out of them and just use one object?

Thank you
 
Ah - it sounds like you are referring to are the DriveListBox, DirectoryListBox and FileListBox controls. bjd4jc is referring to the FileSystemObject, a very different beast. This is part of the Microsoft Scripting Runtime library, which can be added as a Reference into your project. The VB help files cover its use.
 
Yes,
I was refering to DriveListBox, DirectoryListBox and FileListBox controls. I will take a look at FileSystemObject.
Thank you very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top