oGet:lchanged not functioning correct
oGet:lchanged not functioning correct
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.
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
Re: oGet:lchanged not functioning correct
::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.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: oGet:lchanged not functioning correct
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?
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?