FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Finding out an Edit field has been updated
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Finding out an Edit field has been updated
Posted: Fri Mar 19, 2010 04: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 (fw): Select all Collapse
oGetName:oGet:original == oGetName:value()
give us that?
FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: Finding out an Edit field has been updated
Posted: Fri Mar 19, 2010 05: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 )

Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: Finding out an Edit field has been updated
Posted: Fri Mar 19, 2010 06: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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Finding out an Edit field has been updated
Posted: Fri Mar 19, 2010 07: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
Posts: 20
Joined: Tue Feb 02, 2010 10:32 AM
Re: Finding out an Edit field has been updated
Posted: Fri Mar 19, 2010 09:23 AM

Read all fields in a array and check the differneces

Posts: 167
Joined: Thu Mar 22, 2007 11:24 AM
Re: Finding out an Edit field has been updated
Posted: Sat Mar 20, 2010 08:53 AM

I use :

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

Mem can then be compared with the new varget()

Frank

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Finding out an Edit field has been updated
Posted: Sat Mar 20, 2010 11:17 AM

This discussion is more informative

viewtopic.php?f=3t=15916p=82449hilit=oget:updated#p82449

&&&

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion