open status
-= JB =-
sundown at pacifier.com
Thu Jan 17 07:45:05 CST 2008
In your recent replies you explained dbRef very good below
and another answer asked me to explain my task.
The task is simple. All I wanted to do was use the throwout
command. It said the database needed to be closed to use
it so I started thinking it needed a file path instead of dbRef.
Then I started looking for a way to make sure the database
was closed so the user would not get an error.
After your explanation and my reading it better I realize the
Throwout command uses a dbRef. Therefore to use it I will
need to open the database first and then close it before I
can use Throwout with dbRef.
Maybe I need to keep track of databases that have already
been opened to eliminate the confusion. Is there a problem
with opening a database that has already been opened? If
not then I could just open it, close it and throwout even if it
was open already.
-=>JB<=-
On Jan 17, 2008, at 2:20 AM, Ruslan Zasukhin wrote:
> On 17/1/08 11:46 AM, "-= JB =-" <sundown at pacifier.com> wrote:
>
>> You are right it says dbRef. But if the database has not
>> been opened how do you get a dbRef.
>
> If you have no dbRef on hands, then you 100% know that it is
> closed :-)
>
>> Is the dbRef the
>> number returned when a database gets opened.
>
> dbRef = VDatabase_New
>
> // db still is closed
>
> VDatabase_Open( dbRef, path )
>
> // now database is opened.
> VDatabase_IsOpen( dbref ) -> true
>
>
> Vdatabase_Close( dbRef )
>
> // now database is closed.
> VDatabase_IsOpen( dbref ) -> false
>
>
>> If so
>> how do I check to see if database1 is opened and it has
>> not been opened yet. It would not have a dbRef to use.
>
>
> It seems to me, you think about case -- when one user can open db and
> another again try open it ???
>
> Am I right ?
>
> This is called SHARED ACCESS to db file
> Valentina not support this.
>
> If you need multi-user access to database, you need use Valentina
> Server.
>
>
> --
> Best regards,
>
> Ruslan Zasukhin
> VP Engineering and New Technology
> Paradigma Software, Inc
>
> Valentina - Joining Worlds of Information
> http://www.paradigmasoft.com
>
> [I feel the need: the need for speed]
>
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
>
More information about the Valentina
mailing list