VB 2010 - lock/unlock DBF files via BDE
Posted on 2013-10-08
I use one older application, which was possibly created in Delphi and uses DBF files for storing data (DBase III and DBase IV). This application uses BDE v5.01 (Borland Database Engine) for access to DBF files.
I am creating VB.NET application and I need to write some records to these DBF files. This is not a problem for me, but there is the recommendation, that before writing is necessary to lock access for other users from Delphi application. This Delphi application uses BDE functions DbiAcqTableLock and DbiRelTableLock for these purposes.
My question is:
Is it possible in Visual Basic 2010 to lock and unlock DBF files (tables) similar like Delphi application does (via BDE, using functions DbiAcqTableLock and DbiRelTableLock)?
I would like to do it, because my application will work with DBF files at the same time with Delphi application.