Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lock for Write with VFP8?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00787295
Message ID:
00787306
Views:
26
This message has been marked as the solution to the initial question of the thread.
Try the following API calls, may be it works that way you are looking for
* Locks a region in an open file.
* Locking a region prevents other processes from accessing the region.
DECLARE INTEGER LockFile IN kernel32;
	INTEGER hFile, INTEGER dwFileOffsetLow,;
	INTEGER dwFileOffsetHigh,;
	INTEGER nNumberOfBytesToLockLow,;
	INTEGER nNumberOfBytesToLockHigh

DECLARE INTEGER UnlockFile IN kernel32;
	INTEGER hFile, INTEGER dwFileOffsetLow,;
	INTEGER dwFileOffsetHigh,;
	INTEGER nNumberOfBytesToUnlockLow,;
	INTEGER nNumberOfBytesToUnlockHigh
FoxPro code sample
Locking FoxPro table
http://www.news2news.com/vfp/?example=154&function=230
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform