Jump to content
Sign in to follow this  
Mark Williams

FireDAC clearDetails or EmptyDataSet

Recommended Posts

I have been using ClearDetails to remove all records from TFDQuery components.

 

However, I have experienced a problem today where a call to ClearDetails for a reusable query that is designed to return a single record is not removing that record. The description for this function states:

 

Quote

Clears all the content in the dataset.

ClearDetails iterates along rows and columns in order to clear the content.

Pretty much what I was expecting it to do, but (in this one case at least) it is not. I have switched to EmptyDataSet which does the job, but should I be updating all places where I use ClearDetails to update to EmptyDataSet?

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
Sign in to follow this  

×