SQL Like statement

Posts   
 
    
Posts: 2
Joined: 11-Dec-2006
# Posted on: 11-Dec-2006 17:33:53   

Hi,

I've got a simple problem which I'm sure there's going to be an easy fix but can't seem to find it anywhere.

I need to search the DB using an SQL like rather than equivelance:

For example any standard search is performed as:

filter.AddWithAnd(TradeFields.Name == Type);

But I need a:

filter.AddWithAnd(TradeFields.Name Like Type);

Simple (surely!?)

Many thanks in advance,

Brett

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 11-Dec-2006 22:39:44   

filter.AddWithAnd(TradeFields.Name % Type);

simple_smile

Frans Bouma | Lead developer LLBLGen Pro
Posts: 2
Joined: 11-Dec-2006
# Posted on: 12-Dec-2006 13:05:42   

Simple!

Many thanks,

Brett