VcsAfterCreateFolder
Return to Introduction  Previous page  Next page
If this method is exported from the DLL, it will be called after a new Folder has been created.

VcsAfterCreateFolder

procedure VcsAfterCreateFolder( pProject, pFolder, pFolderPath, pUserName: PChar; UserID, ProjectID, FolderID: Cardinal ); stdcall; export;  

This is a notification event only and none of the values passed in can be modified.

Parameters

Name
Description
pProject
The name of the Project that the Folder was created in
pFolder
The name of the newly created Folder
pFolderPath
The Default working path for this folder
pUserName
The name of the user that carried out the action
UserID
The ID of the user that carried out the action
ProjectID
The ID of the Project that the Folder was created in
FolderID
The ID of the newly created Folder



Example (Delphi)

The following method is called after a Project is successfully created and simply logs the action to a local text file:

procedure VcsAfterCreateFolder( pProject, pFolder, pFolderPath, pUserName: PChar; UserID, ProjectID, FolderID: Cardinal );  
begin  
  // This method is called after a Folder is created  
  LogIt( Format( '%s - ''%s'' Created Folder ''%s'', mapping to: %s', [ DateTimeToStr( Now ), String( pUserName ), String( pFolder ), String( pFolderPath ) ] ) );  
end;  
 


 


© 1995-2018 MCN Software