No Method - isNullOrEmpty


#1

Hello,

I was using .IsNullOrEmpty method to check a string variable on my development pc. When I ported over to my front end computer for actual deployment, I was faced with this error below.

Thank you for assisting me!


#2

Hi @tofujuice,

Actually we have to use the string isnullorempty as following,

String.IsNullOrEmpty(strToCheck)

Thanks


#3

“IsNullOrEmpty” is a static method, so please use it with the String class name.

Enjoy :wink:


#4

Thank you for all your help. I was confused that it actually worked on one computer but not the other. Thanks !!


#5

Have the same doubt


#6