PRB: Valid Routine Results in "Record Not Locked" ErrorID: Q111919 The information in this article applies to:
SYMPTOMSA VALID clause on a GET field or BROWSE field accidentally releases an automatic record lock, causing a "Record Not Locked" error message when the valid routine returns .F. The error will not occur if the valid routine returns .T.
CAUSEThe following sequence of events will cause the automatic record lock to be released: 1. The record lock is placed automatically through a command, such as READ 2. During the VALID routine, the record pointer is moved to a new record.
3. Another command, such as REPLACE, that places an automatic record lock 4. The VALID routine returns a .F. value. Control returns to the original
RESOLUTIONThere are two possible resolutions:
MORE INFORMATION
Steps to Reproduce Problem1. Create a TEST database by issuing the following commands in the 2. Create a program file named LOSELOCK with the following commands:
3. In the Command window, issue the following command:
4. Use the DOWN ARROW key to move to the third record.
5. In the CNO field, type the same customer number that appears in the Additional reference words: FoxMac FoxDos FoxWin 2.50 2.50a 2.50b errmsg
err msg
KBCategory: kbprg kberrmsg kbprb
KBSubcategory: FxprgBrowse
|
|
Last Reviewed: June 27, 1995 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |