SQL and API methods + benchs

Olivier vidal_olivier at yahoo.fr
Mon Jan 24 09:19:39 CST 2005


Le 24 janv. 05, à 09:10, Ruslan Zasukhin a écrit :

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

yes, but it NOT exist FindStartWithAsArraySet or FindLikeAsArraySet or 
FindRegexAsArraySet...

>> setBit=base.zipCity.stringField("zipcode").findStartsWith("75")
>> -> "type mismatch error. expected vbitset but got vset"
>
> Strange.
>
> You use latest beta ?
>

yes, b37.
findStartWith, findEndsWith... return a set, not a bitset

>> 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
> -------------------------------------------------------------
>
>
> _______________________________________________
> Valentina-beta mailing list
> Valentina-beta at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina-beta
>



More information about the Valentina-beta mailing list