No Method - isNullOrEmpty

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.

photo_2018-07-05_20-30-48

Thank you for assisting me!

3 Likes

Hi @tofujuice,

Actually we have to use the string isnullorempty as following,

String.IsNullOrEmpty(strToCheck)

Thanks

8 Likes

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

Enjoy :wink:

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

Have the same doubt

1 Like