Turning compression on

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Feb 4 21:46:28 CST 2005


On 2/4/05 9:13 PM, "jda" <jda at his.com> wrote:

>> j> In my project, in the baseobject declaration, I add this line:
>> 
>> j>         abstract.isCompressed = true
>> 
>> j> When I run it, the old db opens fine.
>> 
>> 
>> j> But if I do it this way
>> 
>> j>        abstract = CreateTextField("abstract", 128, EVFlag.fCompressed
>> j> + EVFlag.fNullable + EVFlag.fIndexed + EVFlag.fIndexByWords)
>> 
>> j> I get a nil object error when I run try to open the db.
>> 
>> j> Moreover, if I make a new db and try to create a new record  -> crash.
>> 
>> j> So, should we avoid the EVFlag.fCompressed flag and use
>> j> isCompressed=true after the field has been created? Or should I
>> j> report this (minor) issue on Mantis?
>> 
>> 
>> It's fixed already - just a couple days ago.
>> (id=370)
>> 
> 
> Thanks for the info, Ivan. BTW, is one way better than the other (the
> flag vs. the boolean after the field is created)?

flags in constructor are better, because AFTER THAT you change existed
field.

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------




More information about the Valentina-beta mailing list