Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014

    Populate a List box with text file names

    Sorry, I've looked every where...
    I have a folder made on the users C drive when the CD starts up, the user is asked to make a "List" and name it. After clicking done, this will create a text file with the name they chose. This would then be added to the folder that was made earlier. I want a list box to be popuated with what ever text file names that are in that folder.

    Please help...:

  2. #2
    Join Date
    May 2003
    Location
    Pendleton, Oregon
    Posts
    1,038
    Use the Search file function. For file name, look for *.txt Use the Specific folders/drives functions to limit your search to the folder you want. That will return a string with all the text files in that folder.

  3. #3
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Easiest might be LIST BOX OBJECT > ADD FILES action... (self explanatory in its own dialog)

    Corey Milner
    Creative Director, Indigo Rose Software

  4. #4
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    Hummmm... On page show I did as you said Corey:

    ListBoxObject[Lists].AddFiles (End, "%SrcDrv%\C:\flash\*.txt")

    But all it shows is a * Ideas?

  5. #5
    Join Date
    May 2003
    Location
    Pendleton, Oregon
    Posts
    1,038
    Check out the Help file under Command Reference > Actions > List Box Objects > Add Files. At the bottom under Examples, click on “Searching for MP3s and adding them to a list box”. The example will show you everything you need. Of course you will have to replace *.mp3 with *.txt but you’ll get it.

  6. #6
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    Thx Jim! Oh... and of course Corey.

  7. #7
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746


    Corey Milner
    Creative Director, Indigo Rose Software

Posting Permissions

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