Checking to see if Valentina database is open RunRev

-= JB =- sundown at pacifier.com
Fri Sep 12 14:33:15 CDT 2008


I need to read the whole thing again and I am not really working
on that now but it was done using a number of functions which
looked at the list ( I forget the proper function and name).  But it
takes a few of the functions from what I understood.

Are you able to look at the database list and see which ones are
on there.  If you close a database that is open it will show on the
list as being closed and if it is open it will show it is open.

The problem I was having is if I tried to open a database that is
open it would crash.  So I think you need to get the name of the
file and then check the list to see if it is already open.  I know it
is more complicated than that so you need to study the function
that provides you with the list of databases and then use a few
other things to actually get the proper name and check the list.

I am kind of sick right now due to being poisoned in my home
by a secret society here in America who are protected by many
corrupt politicians and corrupt news media hiding that & other
crimes I have been exposing so it is difficult to program.  This
has been reported to the FBI, news media and many others &
the news in America are taking a payofff to hide the crimes.  It
included treason, conspiracy and many other things.

If I was not sick I would restudy it and do it.  Someday I will write
it if someone else does not provide an example.

-=>JB<=-



On Sep 12, 2008, at 12:10 PM, william humphrey wrote:

> I just got an interesting answer to my question from J.B. on the  
> RunRev list
> -- so I'm going to see if I can be successful where he wasn't:
>
> He said:
>
>
> Hi William,
>
> On January 16, 2008 I asked a question about how to determine if a  
> database
> is open.  The question is listed below.  There were answers and  
> question
> that
> I asked about the answers.  Look at the thread carefully.  I  
> believe it
> includes
> the answer but after that I focused on other parts of Valentina so  
> I still
> need to
> do to.
>
> It would be nice if they included a function with Valentina to give  
> a simple
> true
> or false if a database is open instead of looking at the list.  I  
> don't
> think they
> understand how important this would be for Rev users so they  
> probably will
> not make the function.
>
> -=>JB<=-
>
>
> ---------------------------------------------------------------------- 
> ----------
>
> I am trying to check if a database is open or not.
>
> I use the following:
>
> on mouseUp
>  answer file "Select DB:"
>  put it into dbPath
>  if dbPath is empty then exit mouseUp
>  put VDataBase_IsOpen(dbPath) into var
>  put var
> end mouseUp
>
> I have checked and dbPath contains the proper
> path for the database I select.
>
> If the database is open this should put True into
> the message box but all it does is show an empty
> message box.
>
> Anyone know what I am doing wrong or how to
> check for the open status of a database?
>
> thanks,
>
> Thanks for your prompt answer JB.
>
> I searched the database of old strings and I cannot find any answer  
> for how
> to check if the database is being used by another program. The only  
> answers
> I found were:
>
>
> 1. Don't do that ):  -- figured that one out myself as it results  
> in instant
> crash on Mac OS. I believe that on windows other bad things happen.
>
>
> 2. Use excellent multi-user server version of Valentina.
>
>
> Both of those are excellent answers but I'm still looking for a way  
> to check
> if the database is open by another program from within RunRev.  
> There must be
> a way to do this.
>
>
> PS - When I post to the RunRev mailing list I get a German reply  
> that says
> something about my post not being accepted.
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
>



More information about the Valentina mailing list