| View previous topic :: View next topic |
| Author |
Message |
ErikSw Guest
|
Posted: Thu Apr 08, 2004 5:58 pm Post subject: filter in a CDS |
|
|
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
|
Posted: Thu Apr 08, 2004 6:32 pm Post subject: Re: filter in a CDS |
|
|
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 |
|
 |
|