Finding out an Edit field has been updated

Finding out an Edit field has been updated

Postby hua » Fri Mar 19, 2010 4:52 am

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 view
oGetName:oGet:original == oGetName:value()
give us that?
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: Finding out an Edit field has been updated

Postby Daniel Garcia-Gil » Fri Mar 19, 2010 5:10 am

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 )
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: Finding out an Edit field has been updated

Postby hua » Fri Mar 19, 2010 6:42 am

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
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: Finding out an Edit field has been updated

Postby Antonio Linares » Fri Mar 19, 2010 7:59 am

Hua,

> tried that. Always giving me .f.

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42082
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Finding out an Edit field has been updated

Postby The Real Fasi » Fri Mar 19, 2010 9:23 am

Read all fields in a array and check the differneces
The Real Fasi
 
Posts: 20
Joined: Tue Feb 02, 2010 10:32 am

Re: Finding out an Edit field has been updated

Postby demont frank » Sat Mar 20, 2010 8:53 am

I use :

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

Mem can then be compared with the new varget()

Frank
demont frank
 
Posts: 167
Joined: Thu Mar 22, 2007 11:24 am

Re: Finding out an Edit field has been updated

Postby nageswaragunupudi » Sat Mar 20, 2010 11:17 am

Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10627
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 108 guests