Delete an Index from a ClientDataSet

Delete an Index from a ClientDataSet

Post by Chris Roge » Wed, 11 Jan 2006 03:25:20


Hi all,
My app uses the AddIndex and IndexName methods to set an index for a
TClientDataSet obect. Later, the app must delete this (named) index. The
GetIndexNames method is used to check to see if the named index was added.
It does find this named index in the list. But when DeleteIndex is used to
delete this index (its single parameter is an AnsiString that contains the
index name) I get the following de *** exception notification: "Field
index out of range". What is the proper way to delete this index?
Thank you,
Chris
 
 
 

1. delete #N/A's in Excel

2. How can I filter a Master ClientDataSet from the Detail ClientDataset field values ?

Hi,

I am developing a database application with clientdatasets that loads and
saves it's data directly to and from a .cds file. I am not using any
database server.

I have a master clientdataset and a detail clientdataset.
The detail clientdataset is a datasetfield of the master clientdataset.
The detail clientdataset is a nested dataset of the master clientdataset.

The master clientdataset has a field named NumReg of integer type.
The detail clientdataset has a field named NumRegMaster of integer type.

If a detail record is inserted on the detail clientdataset the NumRegMaster
field of this record receives the same value of the NumReg field of the
corresponding record of the master clientdataset.

I want to filter the master clientdataset based on the values of some fields
of the detail dataset.

I am using the Filter and Filtered properties of the master clientdataset to
build the filter at runtime based on the filter options selected by the
user.

How can I access the detail fields of the detail clientdataset from the
master clientdataset ?

How can I filter the records of the master clientdataset based on the field
values of the detail clientdataset ?

Thank you for any help.

Marcelo.

3. clientdataset delete

4. how to auto delete all index entries entered by an index file

5. SAS indexes:ERROR: Could not find value/rid to delete on index x

6. Deleting a message with VBScript Messages.Delete(index) doesn'

7. on deleting a file its index in the catalog cache gets deleted too

8. And will deleting index.dat delete history?

9. Deleting a message with VBScript Messages.Delete(index) doesn't wo

10. How do i delete index files if the file all ready bin deleted?

11. table indexing question (index of 0 on non-final index)

12. sorting index-15, index-9, index-110 "the human way"?

13. drop index will recreate an index. _Building index?

14. indexing php pages w/ indexing service (or index server) on W2K

15. [PHP] Please explain: index.php/index/index