PRB: FoxPro and Clipper Share the Same DBF Files on a Network (151841)
The information in this article applies to:
- Microsoft FoxPro for Windows 2.5
- Microsoft FoxPro for Windows 2.5a
- Microsoft FoxPro for Windows 2.5b
- Microsoft FoxPro for Windows 2.6
- Microsoft FoxPro for Windows 2.6a
- Microsoft FoxPro for MS-DOS 2.0
- Microsoft FoxPro for MS-DOS 2.5
- Microsoft FoxPro for MS-DOS 2.5a
- Microsoft FoxPro for MS-DOS 2.5b
- Microsoft FoxPro for MS-DOS 2.6
- Microsoft FoxPro for MS-DOS 2.6a
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
This article was previously published under Q151841 SYMPTOMS
RLOCK() will not function properly when a FoxPro Application and a Clipper
Application access the same table simultaneously.
CAUSE
Both FoxPro and Clipper have their own Locking Mechanism. When applying a
lock to a table file on the Network, the function FLOCK() can be recognized
by both Foxpro and Clipper; it will return a TRUE (.T.) if the table is
locked by any of the applications. The function RLOCK() returns a TRUE only
if a particular record of a table is locked by the same application. In
other words, if a record was locked by Foxpro, Clipper can still lock the
particular record without an error, and it has the same behavior the other
way around.
RESOLUTION
Use FLOCK() instead of RLOCK().
Modification Type: | Major | Last Reviewed: | 12/3/2003 |
---|
Keywords: | kb3rdparty KB151841 |
---|
|