|
Description Syntax Return
Datatype Example Migration
IsEmpty Function - Visual Basic 6.0
(VB 6.0) |
Returns a Boolean value indicating whether a variable
has been initialized. |
|
Syntax: |
IsEmpty(expression)
Parameter |
Description |
expression |
Required. Can be any expression. However, because IsEmpty
is used to determine if individual variables are initialized,
the expression argument is most often a single variable name. |
|
Return Data type: |
|
Boolean |
Example: |
Dim vStr as String, vDt as Date, vInt as
Integer, vBool as Boolean
Dim vArr(4, 3) as String, vSng as Single Dim
vVar1, vVar2, vVar3 as Variant
vVar2 = "Checking"
vStr = "ABCD"
Statement |
Result |
Remark |
IsEmpty(1) |
False |
|
|
IsEmpty(vStr) |
False |
|
|
IsEmpty(vArr) |
False |
|
|
IsEmpty(vDt) |
False |
|
|
IsEmpty("17/03/2007") |
False |
|
|
IsEmpty("1234abcd") |
False |
|
|
IsEmpty(vInt) |
False |
|
|
IsEmpty(vBool) |
False |
|
|
IsEmpty(vSng) |
False |
|
|
IsEmpty(unknown) |
True |
|
|
IsEmpty(vVar1) |
True |
|
|
IsEmpty(vVar2) |
False |
|
|
IsEmpty(vVar3) |
True |
|
|
IsEmpty(True) |
False |
|
|
IsEmpty(False) |
False |
|
|
IsEmpty(null) |
False |
|
|
IsEmpty(0) |
False |
|
|
IsEmpty("abcd") |
False |
|
 |
|
|
Migration from Visual Basic 6.0 (VB 6.0) to |
|
IsEmpty Function in VB Script (VBS) |
|
IsEmpty Function in JScript (JS) |
|
IsEmpty Function in ASP (Active Server Page) |
|
IsEmpty Function in PHP Script |
|
IsEmpty Function in MS-Access |
|
IsEmpty Function in MS SQL Server |
|
IsEmpty Function in Oracle |
|
IsEmpty Function in C Language |
|
IsEmpty Function in C++ Language |
|
IsEmpty Function in Foxpro |
|
IsEmpty Function in Fortran |
|
IsEmpty Function in MS Excel Sheet |
 |
|
|
|
|