SCCStatus

This property of the File object tells you the status of a file within the source code control system.

Usage

nStatus = filFile.SCCStatus

Property

Value

Purpose

SCCStatus

0

File is not under source code control.

1

File is checked in.

2

File is checked out to you.

3

File is checked out to someone else.

4

File has a merge conflict.

5

File has been merged.

6

File is checked out to multiple users—watch out!


Use this property to determine whether a file is controlled in the source-code-control system (when the status returns a non-zero value) and what its status is.Use the SCCFILE_* constants in FoxPro.H to write more readable code.

Example

#INCLUDE FOXPRO.H
oFile = oProject.Files[1]
IF oFile.SCCStatus = SCCFILE_CHECKEDOUTMU
  MessageBox(oFile.Name + " is checked out multiple times!"
ENDIF

See Also

AddToSCC, CheckIn, CheckOut, File, RemoveFromSCC, SCCProvider


Back to Table of Contents

Copyright © 2002-2018 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. Click for license .