How to find only string is Null Not empty

Hi all, I have one Quick Question. I have to find that string is only Null or Not. How to find that one.

hi @Buvaneshwaran_R

Try the below expression!

String.IsNullOrEmpty(“yourString”)

Regards

Hi,

Can you try the following condition?

strVar is Nothing

Regards,

Another way is

strvar.Trim.Equals("")

Regards

Nived N :robot:

Hi @pravin_calvin Thanks for your Quick Response. it will give empty also

@Yoichi Thanks for your Quick reply. it’s working Thankyou

1 Like

Hi @Buvaneshwaran_R,

Please tick the correct post as the solution. In this case post from @Yoichi needs to be tagged as the solution and not your response.

4 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.