Microsoft KB Archive/132353

= DOCERR: AfterRowColChange Event Documented Incorrectly =

Article ID: 132353

Article Last Modified on 8/26/1999

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition

-



This article was previously published under Q132353



SUMMARY
According to the Language Reference manual and the Help file, the AfterRowColChange event fires only under these circumstances:

... when the user moves to another row or column in the grid, after the new cell gets the focus, and after the When event of the object in the new row or column. The AfterRowColChange event doesn't fire unless the When event of the object in the new row or column returns true (.T.).

This description of the AfterRowColChange event is incorrect. The AfterRowColChange event is fired even when a row has not been changed.



MORE INFORMATION
To see the AfterRowColChange event fire even when the row has not changed, follow these steps:

 Create a new form named myform. Add a grid to the form.  In the AfterRowColChange event, place this command: WAIT WINDOW "In AfterRowColChange event" timeout .5   In the Command window, run this command: USE samples\data\customer  Save and run the form. Go to the first record in the grid, and press the UP ARROW key. Go to the last record in the grid, and press the DOWN ARROW key.</li></ol>

In steps 6 and 7, you'll see the AfterRowColChange event triggered even though the row has not changed.

Additional query words: VFoxWin BeforeRowColChange

Keywords: KB132353

-

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

© Microsoft Corporation. All rights reserved.