V4RB b14 uploaded.

jda jda at his.com
Mon Aug 30 09:05:19 CDT 2004


>
>  >>
>>>  You can download b14.
>>>
>>
>>  Now when I try to open a db (that I just created) I get an exception:
>>  "File %U is already open."
>>
>>  When I quit and rerun, when I try to open it I get an error -61.
>
>Please check example  Common/Locale_Records
>

I did, and didn't see anything there that gave me the answer. The db 
is create with:

     tempDataBase = new myDataBase
     tempDataBase.Creator = "ABCD"
     tempDatabase.StorageEncoding = "UTF8"
     tempDatabase.collationAttribute = 2

     Valentina.ThrowExceptions = false
     tempDataBase.Create(f, 1, 2 * 1024 )
     Valentina.ThrowExceptions = true
     tempDataBase.close
     tempDataBase = nil
     myDB = f



The open code is very simple:

     if myDatabase1 = nil then
       myDatabase1 = new myDatabase
     end if
    
     try
       myDatabase1.Open(myDB) //myDB is the correct folderitem
     catch vError as VException
       if vError.ErrorNumber = -39 then //handle old version error
         ...
         return
       else
         raise vError
       end if
     end try


Jon


More information about the Valentina-beta mailing list