findmatches filter with enum

Posts   
 
    
tvoss avatar
tvoss
User
Posts: 192
Joined: 07-Dec-2003
# Posted on: 23-Jan-2008 00:02:34   

Just curious why: rFilter.AddWithOr(SampleresultFields.Testid = test.esag) where test.esag is enum = 33 finds 0 matches, and rFilter.AddWithOr(SampleresultFields.Testid = 33) finds 20 matches?

Thanks,

DvK
User
Posts: 323
Joined: 22-Mar-2006
# Posted on: 23-Jan-2008 00:38:26   

you have to cast the enum explicitly to an integer when used in a filter right away....