Check if dataRow[] is null


#1

Hi everyone, I am still very new to UiStudio. I have an issue of checking whether the dataRow[] is empty. I would like to check if it’s null. I read through all of the other issues but none of them seem to be working for me…

It’s an if condition to check if the dataRow[] variable is null.


#2

hello @poogy112 use array Is Nothing
image


#3

@poogy112

you can use this as well

DataRow[ ] dtrow_arr;

(dtrow_arr is Nothing) or (dtrow_arr.length =0)

Regards…!!
Aksh


#4

This will throw a NullReference if it’s actually Nothing. For this to work you need to use the short-circuit version of the comparison (OrElse instead of Or).

https://support.microsoft.com/en-us/help/817250/description-of-short-circuit-evaluation-in-visual-basic