🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.multi-tier
2 messages
2 total messages Started by Juan Diego Garcés Fri, 04 Feb 2000 00:00
TClientDataSet and CanModify property
#1309
Author: Juan Diego Garcés
Date: Fri, 04 Feb 2000 00:00
20 lines
1143 bytes
I make a copy of a Query into a TClientDataSet.  The Query is:

SELECT DISTINCT NAME, BITS FROM SYNOPTAGS

When I try to edit the data in the TClientDataSet, there is always an
exception:

THE TABLE IS NOT IN EDIT MODE

I use the Edit method and FieldValues property of the TClientDataSet to
edit.

When I saw the CanModify property of the TClientDataSet it is FALSE, in
fact this property changes when I make the copy from the Query.

What can I do to avoid the TClientDataSet gets the Query CanModify
property value?

Juan Diego Garc�s
Schneider Electric Suisse
Re: TClientDataSet and CanModify property
#1320
Author: Harold Howe (TeamB)
Date: Mon, 14 Feb 2000 00:00
24 lines
1260 bytes
Juan Diego Garc�s wrote in message <389AC028.9C81FC67@bluemail.ch>...
>I make a copy of a Query into a TClientDataSet.  The Query is:
>
>SELECT DISTINCT NAME, BITS FROM SYNOPTAGS
>
>When I try to edit the data in the TClientDataSet, there is always an
>exception:
>
>THE TABLE IS NOT IN EDIT MODE
>
>I use the Edit method and FieldValues property of the TClientDataSet to
>edit.

What happens when you call the Edit method of TClientDataSet? Does this
generate an exception?

I tried to duplicate your problem. I set up a
TQuery-TDataSetProvider-TClientDataset connection. When I set the active
property of the clientdatset to true, I can edit the data without any
problems.

Harold Howe [TeamB]
http://www.bcbdev.com
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