Results 1 to 2 of 2

Thread: Populate drop down list using file names

  1. #1
    syeddh
    Guest

    Populate drop down list using file names

    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.

  2. #2
    Lively Member
    Join Date
    Mar 2001
    Location
    Sweden
    Posts
    115
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width