SQL and API methods + benchs

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Jan 24 10:10:33 CST 2005


On 1/24/05 7:44 AM, "Olivier" <vidal_olivier at yahoo.fr> wrote:

> I do not manage to cast the sets.
> 
> Dim setBit have vbitset
> Dim setArray have varrayset
> Dim set have vset
> 
>    setBit=base.zipCity.stringField("zipcode").find("75000") //OK

You use FindValue() so it returns BitSet.

Oliver, if you want to get ArraySet then you should use simple
     FindValueAsArraySet()

>   setArray=new varraySet(setBit)
> -> crash 

Last line try create new ArraySet using BitSet
it should not crash.

 
>   setBit=base.zipCity.stringField("zipcode").find("75000") //OK
> setArray=varrayset(setBit)
> -> "illegal cast exception"

RIGHT, because setBit is VBitSet.  You cannot cast it to ArraySet.


> setBit=base.zipCity.stringField("zipcode").findStartsWith("75")
> -> "type mismatch error. expected vbitset but got vset"

Strange. 

You use latest beta ?

> set=base.zipCity.stringField("zipcode").findStartsWith("75")
> setArray=new varraySet(set)
> -> "parameters are not cumpatible with this function"
> 
> set=base.zipCity.stringField("zipcode").findStartsWith("75")
> setArray=varraySet(set)
> -> "illegal cast exception"

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