Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capturing changed grid value
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Capturing changed grid value
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01406405
Message ID:
01406405
Views:
99
When a user changes a value in the grid, I need to perform an update on my views. I need to capture the old value and also a new value. In addtion the row that the user changed I need to capture a value from another column in that row. I tried to create 2 properties called celloldvalue and cellnewvalue. Then I entered the following in the grid methods to see if I can capture the values

in BeforeRowColChange
LPARAMETERS nColIndex
thisform.celloldvalue = thisform.g2.column4.text1.value
and in AfterRowColChange
LPARAMETERS nColIndex
thisform.cellnewvalue = thisform.g2.column4.text1.value
then I create a display message box to see the values, but it returns false. If a value changes in a row, I need to capture that value and also another value in the same row (which contains and id) so I can update my records in the table. I can't seem to figure out what method to update the table or how to capture the values in the row if it changed. Any insight?

Thanks
Nick
Next
Reply
Map
View

Click here to load this message in the networking platform