[V4RB] Init and shutdown
Charles Yeomans
charles at declareSub.com
Sat Mar 10 13:08:06 CST 2007
On Mar 10, 2007, at 2:04 PM, Stan Busk wrote:
> Hi,
>
> Is this correct to initialize Valentina this way:
>
> Valentina.Init( aCache, "V4RB-X-X-XXXX-XXXX-XXXX", "V4RB-X-X-XXXX-
> XXXX-XXXX" )
> Valentina.InitClient()
>
> end shut it down that way:
>
> Valentina.ShutDownClient()
> Valentina.ShutDown()
>
> The app is supposed to be able to open both local and remote DBs.
It depends on what you mean. I don't think it is possible to open
both local and remote databases at the same time. If you want to
open either a local database or a remote database, then what you must
do is to call either Valentina.Init or Valentina.InitClient, but not
both. It's possible to switch during execution by first calling the
appropriate Shutdown method, then the other Init method.
>
> Also is there some error checking for Valentina.InitClient() ? For
> Valentina.Init I use 'If Valentina.CacheSize = 0 then'...
If either method fails, I hope that V4Rb raises an exception.
Charles Yeomans
More information about the Valentina
mailing list