oGet:lchanged not functioning correct

Post Reply
User avatar
byte-one
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria
Contact:

oGet:lchanged not functioning correct

Post 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.
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: oGet:lchanged not functioning correct

Post 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.
Regards

G. N. Rao.
Hyderabad, India
User avatar
byte-one
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria
Contact:

Re: oGet:lchanged not functioning correct

Post 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?
Regards,
Günther
---------------------------------
office@byte-one.com
Post Reply