Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 14 total
Thread How to perform wildcard search using a Table?
Mon, Jun 29 2009 12:57 PMPermanent Link

Brent
I've forgotten how to do a wildcard search using a table filter.

I've tried Filter := 'mymemo='''*Pepsi*''';
but that doesn't work because it returns no rows.

It will find "Pepsi" using

Filter := 'mymemo='''Pepsi*''';

only if mymemo starts with "Pepsi". So how can I search for a word or phrase that is
inside a text or memo column using a table?

TIA
Mon, Jun 29 2009 1:14 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Brent,

<< I've forgotten how to do a wildcard search using a table filter.

I've tried Filter := 'mymemo='''*Pepsi*''';
but that doesn't work because it returns no rows. >>

Use the LIKE syntax instead:

MyMemo LIKE '%Pepsi%'

--
Tim Young
Elevate Software
www.elevatesoft.com

Mon, Jun 29 2009 1:14 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Brent


Just like in sql - use LIKE eg Filter := 'mymemo LIKE ''pepsi'''

Roy Lambert [Team Elevate]
Mon, Jun 29 2009 1:25 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Blast forgot the %s

Roy Lambert
Mon, Jun 29 2009 2:54 PMPermanent Link

Brent
Roy Lambert wrote:

Blast forgot the %s

Roy Lambert

Roy & Tim,
     Ahh yes, the light went on. Smile
Is there any way to make this filter case insensitive? The CaseInsensitive option doesn't
seem to do anything, at least not in DSU.

Brent
Mon, Jun 29 2009 4:22 PMPermanent Link

"Rita"

"Brent" <bdgridly@mailbolt.com> wrote in message
news:C7AE383F-3467-4EFE-8B27-20F2112F975B@news.elevatesoft.com...
> Is there any way to make this filter case insensitive? The CaseInsensitive
> option doesn't
> seem to do anything, at least not in DSU.
>
>
FilterOptions := FilterOptions + [foCaseInsensitive];

Rita

Mon, Jun 29 2009 6:00 PMPermanent Link

Brent
"Rita" wrote:

FilterOptions := FilterOptions + [foCaseInsensitive];

Hi Rita,
  That doesn't seem to work with a filter that is using "like". You can try it with the
DBSU program, but it doesn't work there either. If you can get it to work there, let me
know and I'll see if I can replicate it here.

Brent
Tue, Jun 30 2009 2:34 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Brent


Again think SQL

UPPER(MyMemo) LIKE UPPER('%Pepsi%')

Roy Lambert
Tue, Jun 30 2009 4:20 PMPermanent Link

Brent
Roy Lambert wrote:

Brent


Again think SQL

UPPER(MyMemo) LIKE UPPER('%Pepsi%')


Roy,
   Thanks. Smile Do you know if these table filter functions are available in all table
engines like BDE, Advantage, NexusDb etc.. or just DBISAM?

Brent
Wed, Jul 1 2009 2:49 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Brent


From memory definitely not in BDE other engines I can't say since I've been a DBISAM and now ElevateDB user since switching from the BDE.

Roy Lambert
Page 1 of 2Next Page »
Jump to Page:  1 2
Image