VcsEndAction
Return to Introduction  Previous page  Next page
To allow grouping of multiple actions, this method will be called (if present) after a group of actions occur.

procedure VcsEndAction( UserID: Cardinal; ActionRef: Integer; Action: Word ); stdcall; export;  

This method should be used to, for example, released resources allocated during a call to VcsBeginAction.

Parameters

Name
Description
UserID
The ID of the user performing the actions
ActionRef
A unique value that identifies the group of actions
Action
The type of action just completed. See TCVcsConst.pas for a list of the action types.


Example (Delphi)

procedure VcsEndAction( UserID: Cardinal; ActionRef: Integer; Action: Word );  
begin  
  // This procedure is called just after an action is carried out on multiple  
  // files.  
  if ( Action = act_Promote ) and ( Assigned( PromoteLog ) ) then  
    PromoteLog.Free;  
  PromoteLog := nil;  
end;  



 


© 1995-2018 MCN Software