.FindContains ignores "inSelection" VSet parameter
Ruslan Zasukhin
sunshine at public.kherson.ua
Tue Dec 14 17:30:29 CST 2004
On 12/14/04 5:23 PM, "Erik Mueller-Harder"
<valentina-list at vermontsoftworks.com> wrote:
>>> myVSet = VarCharField.FindContains(inValue, inSelection) ignores the
>>> InSelection parameter, so it's impossible to iterate through multiple
>>> search terms on progressively smaller VSets.
>>
>> Please note!
>>
>> Smaller selection MEANS SENSE only if you do search for NON-indexed
>> field.
>>
>> For indexed field, Valentina still will do search on index.
>> Just comfort is that it will self make AND-union of sets. And you can
>> reduce
>> your code.
>
> Sounds good. So how can I modify the following command to search for
> records containing both "Ruslan" and "Erik"?
>
> myVSet = myVarChar.FindContains("Ruslan")
1) General way is:
s1 = myVarChar.FindContains("Ruslan")
s2 = myVarChar.FindContains("Erik")
s1.Intersection( s2 )
// hmm, may be we need also add
// s3 = Intersection( s1, s2 )
2) second way
s1 = myVarChar.FindContains("Ruslan")
s2 = myVarChar.FindContains("Erik", s1)
s1 = nil // to free RAM ASAP
--
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