Hello,
I want to do a process on a datatable which contains blank rows for a certain column. Currently I have
For each row
IF
row(“Column1”).ToString=“”
Is this correct?
Hello,
I want to do a process on a datatable which contains blank rows for a certain column. Currently I have
For each row
IF
row(“Column1”).ToString=“”
Is this correct?
Hi @mzucker
It looks fine. You can improve the capability of this by using below command.
String.IsNullOrEmpty(row("Column").ToString)
thanks, what do you mean by capability?
what would be the difference between the two
Thanks!
It will also check for Null values as well. So that it will return a true or false for both scenarios
It’s good to have that when checking for empty strings
Great thanks I understand now
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.