BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Filtering a dataset using the Like Operator

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop)
View previous topic :: View next topic  
Author Message
Ximian
Guest





PostPosted: Sun Jan 02, 2005 4:05 pm    Post subject: Filtering a dataset using the Like Operator Reply with quote



Hi & happy new year,
I am facing a strange behavior when using the like operator on a
clientdataset filter.

If I set the like filter to '%USA%' then it doesnt return the USA
result. When I use '%US%' it does return it. But shouldnt the like
operator return exact matches as well?
Back to top
Bill Todd
Guest





PostPosted: Sun Jan 02, 2005 5:06 pm    Post subject: Re: Filtering a dataset using the Like Operator Reply with quote



It should.

--
Bill Todd (TeamB)
TeamB cannot answer questions received via email

Ximian wrote:

Quote:
But shouldnt the like operator return exact matches as well?

Back to top
Ximian
Guest





PostPosted: Mon Jan 03, 2005 10:55 pm    Post subject: Re: Filtering a dataset using the Like Operator Reply with quote



Bill Todd wrote:
Quote:
It should.

Any suggestions?


Back to top
Bill Todd
Guest





PostPosted: Mon Jan 03, 2005 11:03 pm    Post subject: Re: Filtering a dataset using the Like Operator Reply with quote

1. File a bug report in Quality Central.

2. The only workaround I can think of is to use an OnFilterRecord event
handler that uses the Pos function to check for the existence of the
substring.

--
Bill Todd (TeamB)
TeamB cannot answer questions received via email

Ximian wrote:

Quote:
Any suggestions?

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.