FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour oGet:lchanged not functioning correct
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
oGet:lchanged not functioning correct
Posted: 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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: oGet:lchanged not functioning correct
Posted: Sat Jan 26, 2019 02: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
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: oGet:lchanged not functioning correct
Posted: 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

Continue the discussion