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.

Thank you for assisting me!

1 Like

Hi @tofujuice,

Actually we have to use the string isnullorempty as following,

String.IsNullOrEmpty(strToCheck)

Thanks

3 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