Results 1 to 3 of 3

Thread: NLDExecProcedure

  1. #1

    NLDExecProcedure

    ------------
    De sources van NLDDanyUtils zijn te vinden in:
    ftp://ftp.nldelphi.com/public/OpenSo.../NLDDanyUtils/
    ------------

    "ExecuteProcedure" voert een (door de programmeur gedefinieerde) procedure uit in de huidige directory (en indien gewenst in zijn subdirectories) totdat de procedure "cont(inue) = false" teruggeeft, of de procedure in alle (sub)directories uitgevoerd is.

    "ExecuteProcedureInPath": Idem voor alle directories in het zoekpad (de "PATH" environment variabele).

    Kunnen onder meer gebruikt worden om files te vinden, fileattributen te veranderen, ... wat je maar wil (je moet wel zelf dé procedure schrijven!).

    Belangrijk: de procedure mag geen "lokale" procedure (procedure in een andere procedure) zijn. Ze moet op het globale niveau gedefinieerd zijn.

    De interface:
    Code:
    type
      TProcedureToExecute = procedure(var cont: Boolean);
    
    procedure ExecuteProcedure(Proc: TProcedureToExecute; Recursive: Boolean; var
      Cont: Boolean);
    // Executes a user defined procedure in the current directory and if wanted also in
    // all subdirectories until it returns cont(inue) = false (or all directories are done).
    
    procedure ExecuteProcedureInPath(Proc: TProcedureToExecute; var Cont: Boolean);
    // Same as the above, but the user defined procedure is executed in every directory
    // of the "PATH" environment variable. The current directory is always first.
    
    Last edited by Dany; 23-Nov-06 at 20:22.

  2. #2
    Hoi,

    Eindelijk een update:

    Toegevoegd:
    Code:
    procedure ExecuteProcedureInPath(Proc: TProcedureToExecute; var Cont: Boolean);
    Deze routine doet hetzelfde als "ExecuteProcedure", maar dan in alle (bestaande) directories in de "PATH" environment variabele.

    Veel plezier.
    Last edited by Dany; 25-Jul-04 at 13:21.
    Vriendelijke groeten,
    Dany

  3. #3
    Vriendelijke groeten,
    Dany

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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