Article View: borland.public.cppbuilder.database.ado
Article #1411BETWEEN use in TADODataSet
From: Michele Santucci
Date: Wed, 14 Jul 2004 11:49
Date: Wed, 14 Jul 2004 11:49
31 lines
1815 bytes
1815 bytes
I'm trying to use a BETWEEN statement in a .Filter property of a TADODataSet
component.... but each time I try I got an EOleException and an error about
parameters of wrong type, out of bounds or conflicting.
This's a portion of the "non working" code :
AnsiString Filter = "";
dmTargetDB->adodsPlatform->Filtered = false;
for(int i=0; i<QueryItems->Count; i++)
Filter += (*(AnsiString*)QueryItems->Items->Objects[i]);
dmTargetDB->adodsPlatform->Filter = Filter;
dmTargetDB->adodsPlatform->Filtered = true;
dbgActors->Refresh();
P.S. I have problems only with BETWEEN statement other one such as >, =, <
are working fine.
--
================================
Michele Santucci
Software Development Manager
Celin Avio S.r.l.
Via Fontevivo, 21/M 19100 La Spezia
tel. +39-0187564080
================================
Technical Details
Message-ID:
<40f51e09@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10698b,c62bd2de5c3295a9,start X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Michele Santucci" <michele.santucci.nospam@nospam.celinavio.it> Newsgroups: borland.public.cppbuilder.database.ado Subject: BETWEEN use in TADODataSet Date: Wed, 14 Jul 2004 13:49:05 +0200 Lines: 33 Organization: Celin Avio S.r.l. X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 62.94.122.178 Message-ID: <40f51e09@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1089805833 62.94.122.178 (14 Jul 2004 04:50:33 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail