I inherited a FoxPro system that pulls in a number from one table, increments it, and creates a key based on the incremented number. The problem is that it doesn't have any locking whatsoever and duplicate keys are being created. I need to lock the table so only the first user can read and write to the table during this process. If another user tries to access the table, I'd like the system to keep trying to get a lock on it until the table is free again. This is the first time I've used FoxPro, so any help would be greatly appreciated!!
Thanks!
Thanks!