| Author |
Message |
bmarinel
Joined: 03 Apr 2003 Posts: 18
|
Posted: Thu Apr 03, 2003 2:34 pm Post subject: TSimpleDataSet filtering |
|
|
Hi,
I am trying to convert a simple BDE application to dbExpress in Delphi 7. I am using the dbexpsyb.dll library with a TSQLConnection. Then I connect a TSimpleDataSet. It seems to work until I turn on filtering. I can't get any records once I aply a filter. The same filter worked with the BDE. Any ideas?
Regards,
Bill |
|
| Back to top |
|
 |
VISOCO Support VISOCO Software Support
Joined: 16 Jul 2002 Posts: 96
|
Posted: Sun Apr 06, 2003 2:11 am Post subject: Filtering |
|
|
We have checked some simple cases but a problem was not found.
(Just assign a necessary expression to a Filter property and set Filtered to True)
Can you send any sample illustrating a problem to our support team (support@visoco.com) ? |
|
| Back to top |
|
 |
bmarinel
Joined: 03 Apr 2003 Posts: 18
|
Posted: Sun Apr 06, 2003 2:11 pm Post subject: TSimpleDataSet filtering |
|
|
I finally got it working. It seems that in my filter (with dbExpress) I have to pad my constant expression with trailing blanks.
If column is defined as a char(10), and I specify my filter as:
column = 'X'
It doesn't work. If I use:
column = 'X ' { X with nine trailing spaces }
It does work. I guess I will need to be very careful with trailing blanks. Other than this problem, things seem to be working pretty well. I have some more testing to do, but I am hopeful that I can use your product for my application.
Thanks for your reply.
Bill |
|
| Back to top |
|
 |
VISOCO Support VISOCO Software Support
Joined: 16 Jul 2002 Posts: 96
|
Posted: Sun Apr 06, 2003 7:31 pm Post subject: Trailing blanks |
|
|
There is a feature of the driver. It doesn't trim a trailing blanks of "char" fields.
So, a query | Code: | | select convert(char(10), "X") | returns "X " (with 9 trailing blanks) but a query | Code: | | select convert(varchar(10), "X") | returns "X" |
|
| Back to top |
|
 |
|