Determining the Exclusive Status of an Opened DatabaseLast reviewed: November 21, 1995Article ID: Q100443 |
The information in this article applies to:
SUMMARYMicrosoft FoxPro has no function dedicated to determining the exclusive status of an opened database. Whether or not a particular database has been opened as exclusive or shared can be determined with the SYS(2011) function.
MORE INFORMATIONThe SYS(2011) function is used to determine if the current record is locked. When used on a database that has been opened as exclusive, it will indicate that. The following program demonstrates the use of the SYS(2011) function to determine if a database was opened as exclusive:
SET EXCLUSIVE OFF SELECT 0 USE customer.dbf SHARED IF UPPER(SYS(2011)) == 'EXCLUSIVE' WAIT WINDOW "Database opened as Exclusive" ELSE WAIT WINDOW "Database opened as Shared" ENDIF USE customer.dbf EXCLUSIVE IF UPPER(SYS(2011)) == 'EXCLUSIVE' WAIT WINDOW "Database opened as Exclusive" ELSE WAIT WINDOW "Database opened as Shared" ENDIF |
Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a 2.x
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |