>I have a listbox and a grid on a form. The listbox controls the data the grid displays. I need to store the data in the row/column before the user changes it in order to test the value and do a tableupdate(). I'm having trouble figuring out how to get the value before and after the change. Then how do I know what field they changed. Do I have to do this in the textbox control of the column or can it be done in the before/after rowcolchange event of the grid?
>
>Thanks for Your help.
There are many ways. With BRCC-ARCC you could simply do this (assuming there is a custom property oRec) :
*BRCC
scatter name this.oRec
*ARCC
scatter name loRec
llSame = compobj(loRec,this.oRec) && All VFP versions
llSame = (loRec = this.oRec) && VFP6 and up
Also for buffered data check getfldstate().
Cetin