BookmarkSubscribe
Choose Language Hide Translation Bar
AT
AT
Community Trekker

Delete rows of an empty column

I like to delete the rows of a table when a colum is empty. Here is the script:

dt = Current Data Table();

dt << select where (:A == ""));

dt << delete rows;

 

No rows gets deleted. Please help. Thanks

0 Kudos
1 ACCEPTED SOLUTION

Accepted Solutions
cwillden
Super User

Re: Delete rows of an empty column

try dt << Select Where(Is Missing(:A)); 


This works for character and numeric data types.

-- Cameron Willden
2 REPLIES 2
cwillden
Super User

Re: Delete rows of an empty column

try dt << Select Where(Is Missing(:A)); 


This works for character and numeric data types.

-- Cameron Willden
AT
AT
Community Trekker

Re: Delete rows of an empty column

Thanks for quick reply. It works fine now.

0 Kudos