Microsoft KB Archive/135566

= FIX: GATHER FROM Command Checks Lock Status of Table =

Article ID: 135566

Article Last Modified on 9/30/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition

-



This article was previously published under Q135566



SYMPTOMS
When the GATHER FROM 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.



Steps to Reproduce Problem
You will need two computers sharing a common network to reproduce this problem.  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)

 Share the directory containing the two tables, with READ/WRITE privileges. 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. On both computers, issue the SET EXCLUSIVE OFF command.  On one computer, issue these commands: USE Test1 =RLOCK   On the other computer, issue these commands: USE Test1 IN 0 USE Test2 IN 0 SELECT Test1 SCATTER TO foot FIELDS fld1, fld2, fld3 SELECT Test2 GATHER FROM foot FIELDS fld1, fld2, fld3 </li> Note the message on the status bar.</li> Press ESC, and note the message on the status bar.</li></ol>

Additional query words: 3.00 3.00b

Keywords: kbbug kbfix kbvfp500fix kbnetwork KB135566

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.