Ruben,
As Enrico stated you have to open it for exclusive use (set lShared to .f., it defaults to .t.).
Method New( cAlias, cFile, cDriver, lShared, lReadOnly ) Class TData
The reason you can't just do an flock() on a shared database is that other users could have it open and even be editing a record when you do the flock. By opening it in exclusive use, you can be sure nobody else it using the database.
James
↧