HOW TO KNOW WETHER MULTIGET VALUE IS UPDATED OR NOT

Post Reply
User avatar
RAMESHBABU
Posts: 591
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

HOW TO KNOW WETHER MULTIGET VALUE IS UPDATED OR NOT

Post by RAMESHBABU »

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
User avatar
RAMESHBABU
Posts: 591
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Post by RAMESHBABU »

Mr.Enrico

Yes. But I was looking for a simplest way like clipper's ISUPDATED()
like functionality in Gets.

Thanks for your suggestion.

- Ramesh Babu P
User avatar
TecniSoftware
Posts: 213
Joined: Fri Oct 28, 2005 6:29 pm
Location: Quilmes, Buenos Aires, Argentina

Post by TecniSoftware »

Can use on change:

Local lUpdated := .F.

DEFINE GET oGet ON CHANGE lUpDated := .T.



Regards / Saludos
Alejandro Cebolido
Buenos Aires, Argentina
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

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
Post Reply