VcsAfterCheckOut
procedure VcsAfterCheckOut( pProject, pFolder, pObjectName, pUserName, pLockComments, pRevision: PChar;
|
TimeStamp, Flags: Integer; UserID, FileID: Cardinal ); stdcall; export;
|
This procedure is called after a CheckOut action occurs. 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 containing the file
|
pFolder
|
The name of the Folder containing the file
|
pObjectName
|
The name of the file object that was Checked Out
|
pUserName
|
The name of the user that carried out the action
|
pLockComments
|
The comments assigned to the lock
|
pRevision
|
The name of the revision being checked out
|
Timestamp
|
The date/time of the revision being checked out
|
Flags
|
The flags used for the checkin action. See TCVcsConst.pas
|
UserID
|
The ID of the user that carried out the action.
|
FileID
|
The ID of the file that was checked out
|
Example (Delphi)
The following method is called after checkout of a file and simply logs the action to a local text file:
procedure VcsAfterCheckOut( pProject, pFolder, pObjectName, pUserName, pLockComments, pRevision: PChar;
|
TimeStamp, Flags: Integer; UserID, FileID: Cardinal );
|
begin
|
// This method is called after a successful Check Out.
|
LogIt( Format( '%s - ''%s'' Checked Out file ''%s'' - Lock Comments: %s',
|
[ DateTimeToStr( FileDateToDateTime( TimeStamp ) ), String( pUserName ),
|
String( pObjectName ), String( pLockComments ) ] ) );
|
end;
|
|
© 1995-2018 MCN Software