WorkspaceObject.DoSourceControlCommand
- Updated2025-07-21
- 1 minute(s) read
WorkspaceObject.DoSourceControlCommand
Syntax
WorkspaceObject.DoSourceControlCommand( scCommand, modifiedObject, options, [itemList])
Return Value
Returns True if the command was completed successfully for all specified files.
Purpose
Performs the specified source code control command on the specified files.
Remarks
Call the WorkspaceObject.CanDoSourceControlCommand method before calling this method.
Parameters
scCommand As SourceControlCommands
[In] Specifies the source code control command to perform.
modifiedObject As Boolean
[Out] Returns True if the command modified the workspace file.
options As Long
[In] Specifies one or more of the SourceControlCommandOptions constants.
itemList As Variant
[In] [ Optional ] Specifies an array of WorkspaceObjects that specifies the selected files. If you omit this argument, the method uses the file associated with this WorkspaceObject.