0 Comments

To check if a string is empty in VBScript, you can use the function Len.

 

image

Both message boxes will be shown.

 

Notes

  • A String in VBScript can’t be set to Null.
  • An unset String in VBScript has a value of "" and contains no characters.

image

Message box with text "Yes." will be shown.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Posts