Manually constructing a BitSet
Joakim Schramm
joakim at astrocalc.com
Tue Feb 27 17:10:01 CST 2007
> -----Original Message-----
> From: valentina-bounces at lists.macserve.net
> [mailto:valentina-bounces at lists.macserve.net] On Behalf Of
> Ruslan Zasukhin
> Sent: 27 February 2007 23:53
> To: valentina at lists.macserve.net
> Subject: Re: Manually constructing a BitSet
>
> On 28/2/07 12:42 AM, "Joakim Schramm" <joakim at astrocalc.com> wrote:
>
> Hi Joakim,
>
Hi Ruslan,
> Important here that you create
>
> new BitSet( N )
>
> Where N is tbl.PhysicalRecordsCount() !!
>
Hmm can you take that a little bit further, like "which" table? I will
explain more precise what I want to do.
I have tblA which have 1:M links to tblB, what I want to do is to search in
tblB limited to a Set of linked records from 2,3 or lets say 5 records from
tblA. Searching in set limited to links from 1 rec in tblA is easy,
Set BS = Link.FindLinkedAsBitSet(OneRecIDAsLong,tblA,tblB)
But I need also
Set BS = Link.FindLinkedAsBitSet(MoreThenOneRecIDAsSet,tblA,tblB)
I will then finally search in BS for "MyValue", like
Set Res = fld.FindValue("MyValue",BS)
Joakim
>
> > I wonder if it's possible to "manually" populate a BitSet
> with some "known"
> > RecID's? There are some methods in Vset and VBitSet that I
> think could
> > be used for this but I find no example on how to use them.
> The short "asigment"
> > sample in the doc is rather useless. I think I would do
> this something like:
> >
> > Dim VS as New VSET
> > Dim BS1 as New VBITSET
> > Dim BS2 as VBITSET
> >
> > VS.Append(RecId1)
> > VS.Append(RecId2)
> > Etc.
> >
> > Set BS1 = VS
> >
> > Set BS2 = Link.FindLinkedAsBitSet(BS1,tbl1,tbl2)
> >
> > Is this the correct way to do 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]
>
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
>
More information about the Valentina
mailing list