PRB: Cannot Trap Error Number 1884 on FormLast reviewed: November 17, 1997Article ID: Q170148 |
The information in this article applies to:
SYMPTOMSYou cannot trap duplicate key errors such as the following when the error is caused by a user's interaction with a grid on a form:
Uniqueness of index "name" is violated (Error 1884) RESOLUTIONFor a workaround that uses record buffering, place the following code in the Valid method of a TextBox of the Grid:
IF .NOT. TABLEUPDATE() *Invalid Primary Key Trapped here since Error method of Grid does not. =AERROR(arrtemp) =MESSAGEBOX('Error:'+STR(arrtemp(1,1)); +CHR(13)+arrtemp(1,2),0,'Error') RETURN 0 ENDIF STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
Keywords : FxprgGrid vfoxwin kberrmsg Version : 3.0 3.0b 5.0 5.0a Platform : WINDOWS Issue type : kbprb |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |