Page 1 of 1

Finding out an Edit field has been updated

Posted: Fri Mar 19, 2010 4:52 am
by hua
What's the most straight-forward way to test whether user actually edits a field or not? Let say we have a get object named oGetName, would

Code: Select all

oGetName:oGet:original == oGetName:value()
give us that?

Re: Finding out an Edit field has been updated

Posted: Fri Mar 19, 2010 5:10 am
by Daniel Garcia-Gil
Hello

try with oGet:oGet:changed, this return a logical value

becareful are 2 "oGet", (1) FW Get object,, inside has [x]Harbor (2)Get Object ( oGet:oGet )

Re: Finding out an Edit field has been updated

Posted: Fri Mar 19, 2010 6:42 am
by hua
Hi Garcia,
>try with oGet:oGet:changed, this return a logical value
tried that. Always giving me .f.. I wonder whether both Harbour and xHarbour would give me the same result as I'm using xHarbour mostly.

>becareful are 2 "oGet", (1) FW Get object,, inside has [x]Harbor (2)Get Object ( oGet:oGet )[/quote]
thank you. I noticed that.

Re: Finding out an Edit field has been updated

Posted: Fri Mar 19, 2010 7:59 am
by Antonio Linares
Hua,

> tried that. Always giving me .f.

Have you tried it once the GET looses the focus ?

Re: Finding out an Edit field has been updated

Posted: Fri Mar 19, 2010 9:23 am
by The Real Fasi
Read all fields in a array and check the differneces

Re: Finding out an Edit field has been updated

Posted: Sat Mar 20, 2010 8:53 am
by demont frank
I use :

oGet:bGotfocus := {||Mem:=oGet:Varget() }

Mem can then be compared with the new varget()

Frank

Re: Finding out an Edit field has been updated

Posted: Sat Mar 20, 2010 11:17 am
by nageswaragunupudi
This discussion is more informative

http://forums.fivetechsupport.com/viewt ... ted#p82449