Valentina.GetDatabaseVersion() and remote database

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Mar 14 13:49:01 CDT 2007


On 14/3/07 8:41 PM, "Stan Busk" <maxprog at mac.com> wrote:

> Hi,
> 
> Strange. The code below works:
> 
> dbi = mValentinaServer.DatabaseInfo(1)
> myDb = new myDatabase( mVConnection )
> f = new FolderItem( dbi.path, FolderItem.PathTypeShell )
> DBVersion = Valentina.GetDatabaseVersion( f )
> 
> but as soon as I call Valentina.GetDatabaseVersion( f ) from inside a
> method I get a Valentina Exception #-39. In other words, rather than
> calling DBVersion = Valentina.GetDatabaseVersion( f ) directly I have
> that function:
> 
> Function Database_UpdateSchema( inFile As FolderItem )
>    Dim DbVersion as Integer
>    DbVersion = Valentina.GetDatabaseVersion( inFile )
> End Function
> 
> I don't understand the point here.

Stan,

I think this will not work remotely.
What sense in this task?

> dbi = mValentinaServer.DatabaseInfo(1)

So db already is under VSERVER and is opened.
Then it have CORRECT version.

Sense to check it ?

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