Finding out an Edit field has been updated

Post Reply
hua
Posts: 1074
Joined: Fri Oct 28, 2005 2:27 am
Has thanked: 1 time
Been thanked: 1 time

Finding out an Edit field has been updated

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

oGetName:oGet:original == oGetName:value()
give us that?
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
User avatar
Daniel Garcia-Gil
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita
Contact:

Re: Finding out an Edit field has been updated

Post 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 )
our best documentation is the source code
Isla de Margarita Venezuela.
danielgarciagil@gmail.com
http://tdolphin.blogspot.com/
https://www.dropbox.com/referrals/NTI5N ... rc=global9
hua
Posts: 1074
Joined: Fri Oct 28, 2005 2:27 am
Has thanked: 1 time
Been thanked: 1 time

Re: Finding out an Edit field has been updated

Post 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.
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
User avatar
Antonio Linares
Site Admin
Posts: 42409
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 12 times
Been thanked: 48 times
Contact:

Re: Finding out an Edit field has been updated

Post by Antonio Linares »

Hua,

> tried that. Always giving me .f.

Have you tried it once the GET looses the focus ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
The Real Fasi
Posts: 20
Joined: Tue Feb 02, 2010 10:32 am

Re: Finding out an Edit field has been updated

Post by The Real Fasi »

Read all fields in a array and check the differneces
demont frank
Posts: 167
Joined: Thu Mar 22, 2007 11:24 am

Re: Finding out an Edit field has been updated

Post by demont frank »

I use :

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

Mem can then be compared with the new varget()

Frank
User avatar
nageswaragunupudi
Posts: 10709
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 6 times
Contact:

Re: Finding out an Edit field has been updated

Post by nageswaragunupudi »

Regards

G. N. Rao.
Hyderabad, India
Post Reply