Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lock for Write with VFP8?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00787295
Message ID:
00787306
Vues:
25
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform