oGet:lchanged not functioning correct

oGet:lchanged not functioning correct

Postby byte-one » Sat Jan 26, 2019 10:17 am

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
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: oGet:lchanged not functioning correct

Postby nageswaragunupudi » Sat Jan 26, 2019 2:41 pm

::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
nageswaragunupudi
 
Posts: 10283
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: oGet:lchanged not functioning correct

Postby byte-one » Sat Jan 26, 2019 11:41 pm

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
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 35 guests