Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to refresh screen w/ new val as other user updates f
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00728837
Message ID:
00729515
Views:
13
Hi Inge,

>I do not quite understand. I can add a column to the table, and everytime a user (re)SAVE the record, I can update that column with the new date-time. I then have to check the original table every few minutes to see if the date-time column matches with what I have currently in my cursor. Is that right? Then, if not matching, I need to get new updated cursor: REQUERY() does not work with SQL PT cursor,so do I have to do another SQLEXEC to get a new fresh set of cursor?

you got it absouletely right! This is what I would do.

Ok, if you only have a small amount of data in your cursor you could just query your data again without any additional timestamp checks, but if you want to avoid unnecessary network traffic for larger resultsets, you better check for modifications first.

And you can use a trigger to update the "last change" column, so you don't have to manually update that column in all the places you're using one of these tables.

Regards,
Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Previous
Reply
Map
View

Click here to load this message in the networking platform