Results 1 to 30 of 30

Thread: 2 Great Functions

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2004
    Location
    USA
    Posts
    172

    2 Great Functions

    I made 2 great functions called FoldersToProc and FilesToProc. They work like a system hook, and they call that proc with 2 parameters (Path and Finished). You can call them like this:

    FilesToProc:
    VB Code:
    1. FilesToProc frmMain, "FileProc", VbMethod, "C:\"
    Where frmMain is the object that holds the function, "FileProc" is the name of your function, VbMethod is the call type, and "C:\" is the base path of where to get the path of every file in and in all subdirectories.

    Requirements for FileProc or whatever name you want:
    VB Code:
    1. Public Function FileProc(ByVal Path As String, ByVal Finished As Boolean) As Boolean
    2.     If Not Finished Then
    3.         'Do what you want with Path here
    4.         FileProc = True 'Continue receiving file paths
    5.     Else
    6.         'All file paths have been received, and
    7.         'Path does not include a file path.
    8.     End If
    9. End Function

    (Continued in next post)...
    Last edited by xjake88x; Aug 25th, 2004 at 03:36 PM.

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