Finding out an Edit field has been updated

Post Reply
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

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

oGetName:oGet:original == oGetName:value()
give us that?
FWH 11.08/FWH 19.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
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: 861
Joined: Fri Oct 28, 2005 2:27 am

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.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
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: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Finding out an Edit field has been updated

Post by nageswaragunupudi »

This discussion is more informative

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

G. N. Rao.
Hyderabad, India
Post Reply