MODIFY PROJECT

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


View Updates

Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.



Hacker's Guide to Visual FoxPro 7. 0
Hackers Guide to Visual FoxPro 7.0
ISBN: 1930919220
EAN: 2147483647
Year: 2001
Pages: 899

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net