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 

filter in a CDS

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





PostPosted: Thu Apr 08, 2004 5:58 pm    Post subject: filter in a CDS Reply with quote



Hi there,

I'm using D6 and an interbase database.

Im trying to filter my CDS by using the "filter"statement. I'm used to use
this statement with filtering for a string. But I would like to use it now
on an integer. But i don't seem to get this working.

Usually I use this statement: RepCDS.Filter:='UPPER(hoofdgegevens) like
UPPER(''%'+maskedit2.text+'%'')';

But how does this statement look like in case of an integer?

I tried this : Test:=122;
RepCDS.Filter:='hoofdgegevens= ''%'+test+'%'')';

But this doesn't work.......


Anyone a good idea ? Thanks in advance


Back to top
Bill Todd (TeamB)
Guest





PostPosted: Thu Apr 08, 2004 6:32 pm    Post subject: Re: filter in a CDS Reply with quote



RepCDS.Filter:='hoofdgegevens= ' + IntToStr(Test);

assuming that Test is an integer variable.

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) 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.