[V4RB 0000631]: VBitSet and VArraySet cannot use Union, Difference, Intersection, etc.

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Apr 4 13:41:53 CDT 2005


On 4/4/05 3:25 AM, "vbt at paradigma.ukrcom.kherson.ua"
<vbt at paradigma.ukrcom.kherson.ua> wrote:

> VSet defines the functions Union, Difference, Intersection, etc., and the
> documentation specifies that the subclasses VBitSet and VArraySet can use
> them if both sides of the assignment are of the same class. But these
> functions will only compile when used with VSet, not VBitSet or VArraySet.
> Otherwise, you get a Type Mismatch error.
> 
> The problem is that there is no obvious way to coerce a VSet into a
> VBitSet or, especially, VArraySet, so, while you can get a Union, you
> cannot use the methods associated with the subclasses such as
> VArraySet.ItemAt.

Hi Kem,

I think this is false report.
We have all you need.

In the examples I was able do everything I was need.

ANSWER: 

    you can convert bitset into ArraySet using constructor
    of class ArraySet

            ArraySet( inBitSet as VBiteSet )

Exmaple

    dim bs as VBitSet
    dim as as VArraySet

        bs = fld.find( something )

        as = new VarraySet( bs )



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