Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread TDataset Clear
Thu, Jun 13 2013 6:21 AMPermanent Link

Matthew Jones

Is there a way to quickly clear the contents of a TDataset. I looked for Clear or
Empty, and I can't see anything obvious in the source. Delete appears to delete a
single row. Do I just do first then delete until EOF?

/Matthew Jones/
Fri, Jun 14 2013 2:04 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< Is there a way to quickly clear the contents of a TDataset. I looked for
Clear or Empty, and I can't see anything obvious in the source. Delete
appears to delete a single row. Do I just do first then delete until EOF? >>

For now you can just use:

MyDataSet.LoadRows('{ rows: [] }');

However, I'll add an Empty method.

Thanks,

Tim Young
Elevate Software
www.elevatesoft.com
Image