Microsoft KB Archive/139768

= BUG: ON ERROR Statement Not Executed in Browse of Table =

Article ID: 139768

Article Last Modified on 5/7/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q139768



SYMPTOMS
An ON ERROR routine in a Browse command is ignored and a system error message dialog box is returned instead. When code is executed that does essentially the same thing, the ON ERROR routine works correctly.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Problem
 Open the Testdata database located in the Visual FoxPro directory under \Samples\Data. Use the Employee table, and in the Command window, type:

On error wait window "Error encountered:" + Message

 In the Command window, type the following commands:

Scatter memvar

Append blank

Gather memvar && Note that ON ERROR routine triggers.

 Browse the table. Press CTRL+Y or click Append Blank to add a new record. Enter a duplicate key for emp_id, and note that the system error message is returned instead of the ON ERROR routine.</li></ol>

Additional query words: kbvfp300 kbvfp500 kbvfp600

Keywords: kbbug kbprogramming KB139768

-

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

© Microsoft Corporation. All rights reserved.