FindNotContains
Thomas Flemming
tf at ttqv.com
Wed Dec 30 16:34:33 CST 2009
Hi Ruslan,
sorry, cant find anything similar to invert...
Maybe again a c++ - only feature?
Would be useful.
But anyway, I found:
bs1 = f.FindContains(w.searchfor)
bs2 = tbl.SelectAllRecords.SymmetricDifference(bs1)
an this works.
Regards
Tom
Ruslan Zasukhin schrieb:
> On 12/30/09 5:05 PM, "Thomas Flemming" <tf at ttqv.com> wrote:
>
> Hi Thomas,
>
>> there is:
>> w.bitset = mTbl.Field(w.fieldname).FindContains(w.searchfor)
>>
>> but unfortunally no FindNOTContains.
>
> Easy. Just invert BitSet.
>
> InvertedBitset = w.bitset.Invert()
>
> May be method have other name, I not remember exactly.
>
> Although not so easy :)
> Inverted bitset will contains also bits of DELETED records.
> So we need yet do
>
> InvertedBitSet.Intersection( tbl.AllRecords() )
>
> I.e. Choose only true valid records.
>
>
>> I'm trying to use FindRegEx(".*" & w.searchfor & ".*"), but this is the same
>> then FindContains.
>> Somehow I cant find a NOT-Operator in regex...
>
>> Is it possible to mimmik FindNOTContains with FindRegEx or any other
>> api-function?
>
--
/****************************************
** Dipl.-Ing. Thomas Flemming
** Software Development
**
** Touratech AG
** Auf dem Zimmermann 7-9
** D-78078 Niedereschach
**
** mail tf at ttqv.com
** fon +49 (0) 7728 9279-206
** fax +49 (0) 7728 9279-29
**
** http://www.ttqv.com
** http://www.touratech.de
**
** ... und immer dem Pfeil nach!
***************************************/
More information about the Valentina
mailing list