Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting changes
Message
From
26/10/1999 21:20:41
 
 
To
25/10/1999 10:14:20
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00280934
Message ID:
00281977
Views:
14
>Have form that is based on a view, buffermode is 1-Pessimistic. not understanding when exactly it sees the change made to the txtfields. have tried different things. The latest is comparing thisform.txtfield.value with oldval("field","table") in the lostfocus. It doesn't detect a change. What am I doing wrong?

From my experience oldval() will only tell you if another user has changed the disk version of your field while you were working on it, getfldstate will give you a string of 1's and 2's - the 2's being the fields that have changed..
It gets tricky with the table in buffering mode 5 , nothing will show up on disk until you do a tableupdate()
Lots of reading to do on cursorgetprop() and cursorsetprop() , tablerevert() and tableupdate() will also help.
HTH
Previous
Reply
Map
View

Click here to load this message in the networking platform