Hi Friends
I have a multiline get. I want save the value to database only when the
get value is changed.
How can I know wether the get value is updated or not.
Thanks
- Ramesh Babu P
Hi Friends
I have a multiline get. I want save the value to database only when the
get value is changed.
How can I know wether the get value is updated or not.
Thanks
Can't you just compare the current value with the original one?
EMG
Mr.Enrico
Yes. But I was looking for a simplest way like clipper's ISUPDATED()
like functionality in Gets.
Thanks for your suggestion.
Can use on change:
Local lUpdated := .F.
DEFINE GET oGet ON CHANGE lUpDated := .T.
Regards / Saludos
You might try something like:
oGet:cargo:=.f.
oGet:bChange:= {|| oGet:cargo := .t. }
Then you can test for oGet:cargo to see if it is True.
James
Unfortunately there are a couple of bugs that prevent ON CHANGE (and bChange that is the same) from working fine. Specifically, ESC wrongly activates ON CHANGE and Enter erroneously does not.
EMG