BitSet operations [TIP]

Ruslan Zasukhin sunshine at public.kherson.ua
Wed May 10 11:20:30 CDT 2006


On 5/10/06 1:44 AM, "Joakim Schramm" <joakim at astrocalc.com> wrote:

Hi Joakim,

Well, actually ANY parameter should be changed AFTER open of db.

You was confused that DateFormat do work even BEFORE.

This is because DateFormat do not change anything on disk, only way how
date/time values converted to/from strings on the fly.


> A correction, what heppened was I set db.CollationAttribute( kStrength ) =
> kPrimary BEFORE db was open but after the db object was initiated, like this
> 
> Set DB = New VDatabase
> 
> With DB
>     .InitLocal
>     .DateFormat = EVDateFormat.kYMD
>      .CollationAttribute(kStrength) = kPrimary
>     DbPath = AtlasDir + "Atlas.vdb"
> 
>     'If Database not exists we create it.
>     If Not FileExists(DbPath) Then
>         .Create DbPath
>         CreateStructure
>     End If
> 
>     .Open DbPath
> 
>     If .IsOpen Then
> ...
> 
> End With
> 
> It MUST be set AFTER db is open, like this
> 
> Set DB = New VDatabase
> 
> With DB
>     .InitLocal
>     .DateFormat = EVDateFormat.kYMD
>     DbPath = AtlasDir + "Atlas.vdb"
> 
>     'If Database not exists we create it.
>     If Not FileExists(DbPath) Then
>         .Create DbPath
>         CreateStructure
>     End If
> 
>     .Open DbPath
> 
>     If .IsOpen Then
>      .CollationAttribute(kStrength) = kPrimary
> 
> ...
> End With
> 
> Then it works. This need to be added to documentation.

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