Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 7 of 7

Thread: Help

  1. #1
    Josué Alba Guest

    Help

    Hi somebody know How can I get All the files with the same ext from a folder (like all the jpg's)?

  2. #2
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    What do you want to do with all the files? You can use the File.Find to build a table of all files in a directory with a particular extension.
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  3. #3
    Josué Alba Guest
    I want them to be shown on a list. And there select some (with a preview option) like a cathalog but they are not images (to use the plugin)

  4. #4
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Code:
    --Find all ogg files using recurse in the sourcefolder
    tbOggs = File.Find( _SourceFolder, "*.ogg", true, false, nil);
    --If files were found then do the following
    if tbOggs then
    --for each item perform the following actions
    for i,v in tbOggs do
    --Split the path to find the filename
    tbSplitPath = String.SplitPath(v);
    --add to listbox the filename as text and full path as data
    ListBox.AddItem("ListBox1", tbSplitPath.Filename, v);
    end
    end
    Is this what you are looking for?

    Tigg
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  5. #5
    Josué Alba Guest
    haha yes that's exactly was I was looking but I had made it alreay with the file.find as you suggest. Any way thanks Tigger you know I like you so much

  6. #6
    Join Date
    Jun 2002
    Location
    Southeast USA
    Posts
    1,804
    Tigger's a wonderful thing.

    You know, his bottom is made out of springs, they say. But alas, he's the only one. Heeeeeee's the only one! Hoo hoo hoo hoooo!
    Eric Darling
    eThree Media
    http://www.ethreemedia.com

  7. #7
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    I second that hoo hoo!

Posting Permissions

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