Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tracking changes on a Grid
Message
From
09/01/2003 07:03:48
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
08/01/2003 13:19:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00739416
Message ID:
00739727
Views:
18
>I’m using a textbox class as the currentcontrol of a grid’s column.
>The when event of the textbox stores the value of its recourdsource into a property (OldValue) in order to detect changes at the valid event by comparing both values, the recordsource new value (if changed) and the property value (OldValue).
>
>lcRecordSource = this.ControlSource
>this.OldValue = evaluate(lcRecordSource)
>
>This seems to be working fine when changing from row to row but when accesing another column and returning back to the previous column (like when hitting Right arrow-Left arrow), the When event is getting a zero as the controlsource value.
>
>It seems like if the controlsource value has not been updated yet internally when the When event is fired.
>
>Any hints about what to do and/or any other ways arround to track changes are appreciated.
>
>Regards and thanks in advance.
>
>Oscar Corte

Oscar,
This might be easier :
*Gotfocus
this.tag = trans(this.value)
*Lostfocus
if !(trans(this.Value) == this.tag)
*...

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform