FIX: GATHER FROM Command Checks Lock Status of Table

Last reviewed: October 29, 1997
Article ID: Q135566
3.00 3.00b WINDOWS kbnetwork kbprg kbbuglist kbfixlist

The information in this article applies to:

  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b

SYMPTOMS

When the GATHER FROM <array> FIELDS command specifies fields that are not in the target table, it examines the source table from which the fields were scattered. If that source table is shared by another user and that table's current record is locked, Visual FoxPro displays the following legend on the status bar:

   Attempting to lock...Press ESC to cancel.

When the user presses ESC, a message box appears explaining "Record is in use by another user."

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual FoxPro 5.0 for Windows.

In Visual FoxPro 5.0, the message "Variable 'FLD2' is not found" appears rather than the locking message.

MORE INFORMATION

Steps to Reproduce Problem

You will need two computers sharing a common network to reproduce this problem.

  1. On one of the computers, create the following tables in Visual FoxPro:

    Test1 has this structure:

          FLD1 c(10)
          FLD2 c(10)
          FLD3 c(10)
    

    Test2 has this structure (a single field):

          FLD1 c(10)
    

  2. Share the directory containing the two tables, with READ/WRITE privileges.

  3. On the second computer, connect to the network drive just shared. Then use the SET DEFAULT TO command to set the new drive as the default.

  4. On both computers, issue the SET EXCLUSIVE OFF command.

  5. On one computer, issue these commands:

    USE Test1 =RLOCK()

  6. On the other computer. issue these commands:

    USE Test1 IN 0 USE Test2 IN 0 SELECT Test1 SCATTER TO Foo FIELDS fld1, fld2, fld3 SELECT Test2 GATHER FROM Foo FIELDS fld1, fld2, fld3

  7. Note the message on the status bar.

  8. Press ESC, and note the message on the status bar.


KBCategory: kbnetwork kbprg kbbuglist kbfixlist
KBSubcategory: FxprgMultiuser VFoxWin buglist3.00 buglist3.00b fixlist5.00
Additional reference words: 3.00 3.00b
Keywords : buglist3.00 buglist3.00b fixlist5.00 FxprgMultiuser vfoxwin kbbuglist kbfixlist kbnetwork kbprg
Version : 3.00 3.00b
Platform : WINDOWS
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 29, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.