BookmarkSubscribeRSS Feed
Choose Language Hide Translation Bar
jmpandvba

Occasional Contributor

Joined:

Jul 26, 2018

script for deleting all columns and rows in a data table

How can I select all data in a data table (all rows and columns) and delete it through a script? 

1 ACCEPTED SOLUTION

Accepted Solutions
cwillden

Super User

Joined:

May 1, 2017

Solution

Re: script for deleting all columns and rows in a data table

dt = Current Data Table();
dt << Select All Rows() << Delete Rows;
-- Cameron Willden
1 REPLY 1
cwillden

Super User

Joined:

May 1, 2017

Solution

Re: script for deleting all columns and rows in a data table

dt = Current Data Table();
dt << Select All Rows() << Delete Rows;
-- Cameron Willden