Page 1 of 1

oGet:lchanged not functioning correct

PostPosted: Sat Jan 26, 2019 10:17 am
by byte-one
If i am using oGet:lchanged this is only functioning on first edit. After editing a second,... one the lChanged is always .T. also when i not change the value! It sems ::uOriginalValue are not updated to the new value after editing.

Re: oGet:lchanged not functioning correct

PostPosted: Sat Jan 26, 2019 2:41 pm
by nageswaragunupudi
::uOriginalValue are not updated to the new value after editing.

Will not be changed every time the user edits.

uOriginalValue is the value at the time the Get is created and will remain the same till the Get ends.
lChanged is .T. if the present value is different from the value when the Get is created.

This is the intended and desirable behavior.

Re: oGet:lchanged not functioning correct

PostPosted: Sat Jan 26, 2019 11:41 pm
by byte-one
Rao, but what the sin from knowing the value of the control at create-time? The interest is the change .t. or .f. !
If you make the ::lchanged not PROTECTED we can use it as programmer.
Or is there another method to determine a get is edited or not?