Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_GeneralGeneral Functions

Public Function mt (
varToTest As Variant,
Optional SuppressError As Boolean = False,
Optional TrimStrBeforeTest As Boolean = True
) As Boolean

Is the variable empty (Null, or empty string) ?

varToTest as Variant

A variant value

Optional SuppressError as Boolean = False

Suppress error if an error occurs

Optional TrimStrBeforeTest as Boolean = True

If the varToTest is a string, trim spaces before testing

Call Template:

Dim b As Boolean
b = xf.Gen.mt(varToTest)
b = xf.Gen.mt(varToTest, SuppressError, TrimStrBeforeTest)

See Also:

Example 1:

mt(Null)   => True
mt("")     => True
mt("0")    => False
mt(0)      => False
mt(23)     => False
mt(False)  => False
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd