Is there a way to produce a boolean value to check if any value in an array is equal to “null, nothing or 0”
Have you tried
Is Nothing
For string you can use String.IsNullorEmpty("testStr")
YourArray.Any(Function (x) IsNothing(x) OrElse String.IsNullOrEmpty(x.ToString))
with the assumption the array is a string, int, double but not a complex datatype
YourArray.Any(Function (x) IsNothing(x) OrElse
String.IsNullOrEmpty(x.ToString))
instead of
YourArray.Any(Function (x) IsNothing(x) OrElse
String.IsNullOrEmpty(x.ToString.String))
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.