Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update conflicts
Message
From
24/07/2001 09:52:18
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, United States
 
 
To
20/07/2001 16:23:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00533337
Message ID:
00534372
Views:
16
That didn't work. The problem is upon saving the record of the grid, the record pointer isn't moved...

>
>if TableUpdate()
>  MessageBox('Record saved successfully.')
>else
>  * Get error with aerror()
>  If (update conflict)
>    MessageBox("Update conflict - another user just edited the record.")
>    TableRevert()
>    ThisForm.Refresh()
>endif
>
Thomas, it was defaulted at datasession = 1. I changed it to 2 and some other error messages came up (grid calling the table sort of thing), so it's back to 1. At least for now, to get this program out the door.

Grigore, thanks for the email, I will review it. I will look into OLDVAL(), CURVAL(), etc, as Mark uses that approach too.

Marcia, I know, just kidding. However, I did asked about what is the best "framework" should I set up and I am not there yet (boss rushed me to finish this program).

Seems to my understanding that I may best off with RLOCK and UNLOCK. That way, the record is LOCKed, thus other user can KNOW it is being editing at the same moment. This will then lead me to how to UNLOCK (and SAVE?) after so many minutes, for such "lunch lock". Also, would have to find a way to REFRESH the forms others may be viewing (instead hoping they exit the form and come back again).

My PC has been crashing like crazy yesterday, so hope this goes through. Thanks to all that helped. I am still trying to come to a result yet.

Chuck
Today is tomorrow's yesterday.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform