FIX: Delete Trigger Fires Out of OrderID: Q135562 3.00 WINDOWS kbprg kbfixlist kbbuglist The information in this article applies to:
SYMPTOMSThe Delete trigger fires immediately when buffering level is 2-Record (Pessimistic) or 3-Record (Optimistic).
CAUSEWith these buffering levels, the Delete trigger should fire when you leave a record. However, it fires immediately as though the buffering level was 1 (Off - No Buffering).
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual FoxPro 3.0b for Windows.
MORE INFORMATIONRules and triggers are there to protect the integrity of the data. The order in which the rules and triggers fire depends directly on the buffering in effect at that time. With Buffering levels 2 or 3, the Delete trigger should not fire until you attempt to leave the record instead of immediately because that record is buffered until you move the record pointer off that record.
Steps to Set Up Example to Reproduce Problem1. To duplicate the behavior of the firing order of rules and triggers, 2. Enter the following procedures into the Stored Procedures:
3. Enter the following in the Command window:
Steps to Reproduce Problem1. In the Command window, type:
2. To verify the setting, enter the following on a new line in the Command
3. Select the title bar of the table, click the secondary (right) mouse
4. With Table Buffering set Off, press CTRL+Y to append a blank record.
5. Mark any record for deletion. The Delete trigger fires immediately. This 6. Enter the following commands in the Command window:
7. Mark any record for deletion, the Delete trigger fires immediately.
8. Change Buffering to 4 (Pessimistic Table Locks) by typing in the
9. Change the buffering level to 1 (Off) by typing in the following Command
Additional reference words: 3.00 VFoxWin fixlist3.00b buglist3.00 events
KBCategory: kbprg kbfixlist kbbuglist
KBSubcategory: FxprgTable
|
Last Reviewed: October 31, 1997 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |