>>>Rich,
>>>
IF EVALUATE(".Columns(nColIndex)." + m.CtrlName + ".Value") ;
>>> != OLDVAL( .Columns(nColIndex).ControlSource )
part seems to fail. Strange maybe but you need a .value = .value first.
>>>Cetin
>>
>>Uhh ... it works on my computer. I'm using VFP6.0 with VS SP1, how about you?
>>
>>Cheers,
>Still VFP5. Not sure if corrected in 6.0. Try w/o enter but moving up or down. Besides oldval() might return null causing error.
>Cetin
Wasn't using Enter, using arrow keys. Whatever direction I move, left, right, up, or down, the code fires and correctly sees whether I did or didn't change the value. I move around without changing anything and the buttons stay disabled (as they're set in form designer). The first time I change a value and then move, the buttons become enabled. Just what I wanted.
Thanks again,
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing