VBS tutorial: Functions – isempty functions


Isempty function

Returns a Boolean value indicating whether the variable has been initialized.


expressionParameters can be any expression. However, due toIsEmptyIt is used to judge whether a variable has been initialized, soexpressionA parameter is often a variable name.


If the variable is uninitialized or explicitly set to empty, the functionIsEmptyreturnTrue; Otherwise, the function returnsFalse。 IfexpressionContains more than one variable and always returnsFalse

The following example usesIsEmptyThe function determines whether a variable can be initialized:

Dim myvar, mycheckmycheck = isempty (myvar) 'returns true. Myvar = null 'is assigned null. Mycheck = isempty (myvar) 'returns false. Myvar = empty 'is assigned empty. Mycheck = isempty (myvar) 'returns true.

Recommended Today

SQL exercise 20 – Modeling & Reporting

This blog is used to review and sort out the common topic modeling architecture, analysis oriented architecture and integration topic reports in data warehouse. I have uploaded these reports to GitHub. If you are interested, you can have a lookAddress:https://github.com/nino-laiqiu/TiTanI recorded a relatively complete development process in my hexo blog deployed on GitHub. You can […]