Knowledge Base

DOCERR: AfterRowColChange Event Documented Incorrectly

Article ID: 132353

Article Last Modified on 8/26/1999


APPLIES TO


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:

  1. Create a new form named myform.
  2. Add a grid to the form.
  3. In the AfterRowColChange event, place this command:
       WAIT WINDOW "In AfterRowColChange event" timeout .5
    							
  4. In the Command window, run this command:
       USE samples\data\customer
    							
  5. Save and run the form.
  6. Go to the first record in the grid, and press the UP ARROW key.
  7. Go to the last record in the grid, and press the DOWN ARROW key.
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