🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.multi-tier
1 messages
1 total messages Started by CTHULHU Tue, 29 May 2001 10:30
TClientDataSet acting very strange...
#646
Author: CTHULHU
Date: Tue, 29 May 2001 10:30
35 lines
1973 bytes
Hi,
I have a very strange and dangerous problem with a filtered
TClientDataSet.

Here are the facts:
I got a filtered TClientDataSet let call it ClientDB1, it is filtered
by a field called Route (a BLOB field)
If I change the Blob field and I ApplyUpdates(-1) then the strange
thing happens. In this way.

Let's say we see the following in the BDGrid on the window before the
changes and before th call to ClientDB1->ApplyUpdates(-1)...
ClientDB1 is filtered  as "...Route = "First"..."

Date 		Name		 Route
01012001	Me		First
01022000	You		First

Now if I change the Route field to Second and I ApplyUpdates(-1)
then I will'see the following on the DBGrid...

Date 		Name		 Route
01022000	Me		First

The first record (Me) has disappeared from DBGrib because it
doent'match the filter anymore. But! The following record has changed
its name fro "You" to "Me"!!!!!! And it is not a visualization problem
but a real one, because the name has been overwritten into the
database!!!!!

Someon can help me? I cannot figure out how to correct this strange
behaviour...

I'm using C++Builder4 and Interbase 6.0.1 and NT Ws 4.0 Sp5
Raffaele Pantaleoni
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads