The information in this article applies to:
SUMMARYThe implementation of Referential Integrity (RI) in Visual FoxPro uses user defined field and record rules in a database. You can set up rules manually or you can use the RI builder to control how records are inserted, updated, or deleted in related tables. This article describes two methods you can use to verify that an INSERT, DELETE, or UPDATE trigger was successful. MORE INFORMATION
If you are working directly with a table in a database, error 1539 (Trigger
failed) is generated when a trigger fails. Your code can check for this
error in an error handling routine. This method only provides the
information that the trigger failed. It requires the existence of a
variable to track the origin of the failure.
If you need more precise information than AERROR() provides and you have
used the RI builder to build the insert, update, or delete rules, you can
inspect the values that are stored in the gaError array. This array is
built by the RI builder. When an error occurs, the array is populated with
information about the error and about the tables and record for which the
trigger failed.
For more information about gaErrors, please see the following article in the Microsoft Knowledge Base: Q142284 How to Use gaErrors() to Find Out Why a Trigger Failed Additional query words:
Keywords : kbDatabase kbVFp300 kbVFp500 kbVFp600 KbDBFDBC |
Last Reviewed: August 25, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |