[V4RB2] Union problem

Kem Tekinay ktekinay at mactechnologies.com
Mon Apr 4 09:23:57 CDT 2005


On 4/4/05 1:54 AM, Ruslan Zasukhin at sunshine at public.kherson.ua wrote:

> So you must assign it to Vset.
> This will work
> 
>  dim bs, bs1 as VBitSet
>  dim set as VSet 
> 
>  bs = tbl.SelectNoneRecords
>  bs1 = tbl.fld.FindContains( something )
>  if bs1 <> nil then
>     set = bs.Union( bs1 )

Yes, this does work. Thank you.

But I still need help with the next part. How do I turn the VSet into a
VArraySet? I've tried:

  dim arrSet as VArraySet

  arrSet = new VArraySet(set) // Wrong parameter
  arrSet = VArraySet(set) // Compiles, but IllegalCastException at runtime

__________________________________________________________________________
Kem Tekinay                                                 (212) 201-1465
MacTechnologies Consulting                              Fax (914) 242-7294
545 Eighth Avenue, Suite 401                          Pager (917) 491-5546
New York, New York 10018                    http://www.mactechnologies.com

To join the MacTechnologies Consulting mailing list, send an e-mail to:
  mactechnologies_consulting-subscribe at yahoogroups.com





More information about the Valentina mailing list