api way

Jules Jacquot jules.jacquot at wanadoo.fr
Sat Jul 23 10:07:07 CDT 2005


Le 23 juil. 05 à 08:48, Ruslan Zasukhin a écrit :

sorry ruslan, this line gets an exception

bitset23 = bitset2.intersection(bitset3)

even in your example field_find

jules

>
>     bitset23 = bitset2.intersect(bitset3) //


>
>         // release memory ASAP
>         bitset2 = nil
>         bitset3 = nil
>
>     bitset123 = bitset1.intersect( bitset23 )
>
>         // release memory ASAP
>         bitset1 = nil
>         bitset23 = nil
>
>     arrasetRes = tblArticle.Sort( bitset123, "BArt" )
>
>         bitset132 = nil
>
> Now you have ArraySet of selected fields.
>
> In the API way you do not use separate fields from SELECT.
> You always use just a Table.
>
>     // for each selected recID
>
>     foundRecs = arraysetRes.Count
>
>     loop I = 1 to foundRecs
>
>         RecId = arraysetRes.GetItemAt( I )
>
>         tblArticle.RecID = RecID   // these 2 lines can be as single
>
>         ... Do something you need
>
>     end loop
>
>
> -- 
> 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
>
>

Réussir dans la vie,  c'est échouer au bon endroit

Jean-Baptiste de Foucauld




More information about the Valentina mailing list