ListBox of a Directory

ListBox of a Directory

Anonymous
Not applicable
203 Views
1 Reply
Message 1 of 2

ListBox of a Directory

Anonymous
Not applicable
I am trying to create a listbox that shows all files in a directory. I have
the user select with directory. But from this point I am lost. I don't know
how to generate the list of files in the Directory. I am creating a
dataloader program, we sometimes have 50 files to load. Does anyone have
code that will do this or have a suggestion to get me going.


thanks
0 Likes
204 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
there could be several ways to do something like that.
if you're in vba you could use the old fashioned drivelistbox dirlistbox and
filelistbox controls
that's probably tacky to some, but requires minimal coding to get what you
describe.

if you're in vb or don't want to use a filelistbox you could use the vb
function dir() to step through files and add them to a listbox.

altenately you can use the win api to avoid the dir() function if you prefer
api type methods.

is that any help?
Mark

"Wsalling" wrote in message
news:D50D4F7ECD1B2132968FDE3C2DD3CE06@in.WebX.maYIadrTaRb...
> I am trying to create a listbox that shows all files in a directory. I
have
> the user select with directory. But from this point I am lost. I don't
know
> how to generate the list of files in the Directory. I am creating a
> dataloader program, we sometimes have 50 files to load. Does anyone have
> code that will do this or have a suggestion to get me going.
>
>
> thanks
>
>
0 Likes