View Single Post
  #5 (permalink)  
Old June 11th, 2003, 02:03 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Dennis,

In my case / application, it's the starting value. A user can browse to a folder, select it and then press the start button which starts the ProcessDirectory method for the first time. Something like this (pseudo):

Sub btnStart_onClick()
    ProcessDirectory(txtBrowseForFolder.Text)
End Sub

Since I recurse (upwards), I try to avoid going above the level of the starting folder, so that's why I check the length.

HtH

Imar
Reply With Quote