PDA

Click to See Complete Forum and Search --> : Populate drop down list using file names


syeddh
Jun 18th, 2001, 03:57 PM
I need some advice/help.

I need to be able to populate a dropdown list box using the contents of a directory.

What api's are available that i can call on or what would be a better way of doing this. again I am not using a database of anysort, i need to traverse a certain directory, collect files that match a certain criteria (i.e all .pdf files in a given directory) and populate a listbox using them. from there i would hava a go button that will basically open the file.

thanks for all the help in advance.

CreoN
Jun 18th, 2001, 06:05 PM
If you are doing this in VB you can just insert a hidden FileListBox in the project and step through this and add each file in the dropdown list.

If you are doing this in ASP, you'll have to use a FileSystemObject and step through this adding each file to the dropdown list.