File error

Ruslan Zasukhin sunshine at public.kherson.ua
Sun Nov 25 10:28:17 CST 2007


On 24/11/07 7:01 PM, "jda" <jda at his.com> wrote:

Hi Jon,

> I'm running into a problem I don't understand, but I hope you can
> explain.
> 
> I have a db in a single file (RB). If the user tries to open in a
> window already open I don't want to open it again, and if the user
> tries I put up a warning. Here's the code:
> 
>    f = DesktopFolder.child(dSyncDBName)
> 
>    if f.IsReadable = false or f.IsWriteable = false or f.Locked = true
> then
>      MsgBox("You don't have read/write permission for the database ³"
> + dSyncDBName + "²")
>      return
>    end if

--------------------
> This works well. But when I then ultimately close that window
> Valentina throws an exception on this line:
> 
> myDatabase.flush
> 
> The error is -38, file not open.
> 
> But in the RB debugger myDatabase is show with isOpen = true.
> 
> Do you have any idea what is going on?

It is not clear AFTER WHAT it starts say -38  ???

You did NOT try do second time db.open(). Right?
Or something similar...

You can check V4RB LOG to see ACTUAL calls to V4RB plugin.
May be you will see something not expected...


-- 
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]




More information about the Valentina mailing list