Results 1 to 4 of 4

Thread: [2005] Looping the file

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2006
    Posts
    96

    [2005] Looping the file

    How can I use a for loop to loop the file in a directory?

  2. #2
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: [2005] Looping the file

    could you please explain in detail what the heck that meant. I am sure i can help but i don't understand the question. Give an example if possible.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  3. #3
    Hyperactive Member Troy Lundin's Avatar
    Join Date
    May 2006
    Posts
    489

    Re: [2005] Looping the file

    Are you talking about recursion?
    Prefix has no suffix, but suffix has a prefix.

  4. #4
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: [2005] Looping the file

    If you are talking about Filling an array with filenames, loops aren't necessary for that in vb.net.
    Code:
            ' Create an array representing the files in the current directory.
            Dim fi As System.IO.FileInfo() = di.GetFiles()
            Dim fiTemp As System.IO.FileInfo
            For Each fiTemp In fi
                msgbox fiTemp.Name
           Next fiTemp
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

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