how do I ... casting fields to evaluate by filter

Posts   
 
    
KevinIson
User
Posts: 3
Joined: 11-Nov-2010
# Posted on: 15-Nov-2010 18:28:11   

I am trying to do this:

Select <fields> from table Where cast(field1 as int) > <low int value> and cast(field1 as int) < <high int value>

I am using self servicing and I cant quite make out how to do this. The documentation is a little confusing.

I thought I would do something like this filter.add(new dbfunctioncall("cast({0} as int)", someentityfields.field > iLowValue

but then I am not sure how to complete it to test for the high value...

Could someone please explain to me how do this?

Thanks

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 16-Nov-2010 02:04:19   

Hi Kevin. This thread should be helpful to you: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=16373

David Elizondo | LLBLGen Support Team