Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tracking changes on a Grid
Message
From
08/01/2003 13:19:07
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Tracking changes on a Grid
Miscellaneous
Thread ID:
00739416
Message ID:
00739416
Views:
73
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
Next
Reply
Map
View

Click here to load this message in the networking platform