Jump to content
Jacek Laskowski

TFDMemTable - how to clear structure?

Recommended Posts

How to clear structure of TFDMemTable? Not only data like in EmptyDataset() method, but fields, indexes, filters, etc. too.

Is possible?

Share this post

Link to post

There are various ClearXxx methods for TFDMemTable, but it is not obvious which one(s) to call, or in which order, and if they actually reset the whole thing.
The above suggestions, on the other hand, are solid.

Share this post

Link to post

Hello Jaca! :)

There is no simple solution for that.

However, I would suggest basing your own solution on the CopyDataSet code.
Note that if you specify the coStructure parameter in the options of CopyDataSet method, you will get what you want.
Almost ;-)

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now