Hi All…just want to check if a datatable is null before proceeding further
Hi @Janani_T2
Use below code
Use if condition
IsNothing(datatable name)
True → null
False-> not null
Depending on the if condition you can design your code accordingly
Dt is Nothing or Dt.Rows.Count=0
@Janani_T2
You can check by this.
YourDT.Rows.Count=0 orElse YourDT is Nothing
Hi @prateek.mehandiratta9 @raja.arslankhan
Hi, I don’t want to check the contents of the table whether it is empty or not or whether it contains rows or columns, I want to check if the table itself is Nothing or Null
Thanks this works