V4MD OpenDatabase() question

Andrew Sinning andrew at learningware.com
Thu Dec 14 11:28:38 CST 2006


I solved this problem by adding a step to the process where I first try 
to open (and then close) the main db file using the FileIO xtra.  If 
this fails, then I know that the db is locked.

Andrew Sinning wrote:

> I am not using V4MD as a server application, but it is entirely 
> possible that a customer might create a database in a public folder on 
> a network drive.  In the event that one user already has a Valentina 
> db open, when a second user goes to open it, there doesn't appear to 
> be an obvious way to know this.  The problem is that the 
> OpenDatabase() comman does not fail or return any error, even though 
> the db has not been sucessfully opened!
>
> So, what might you recommend as a way to know if the OpenDatabase 
> command has failed?
>
> Thanks!
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
>
>


More information about the Valentina mailing list