Search notes:

VBA: datatype variant

The actual datatype of a variant variable is determined at runtime. Hence the name.

empty / null

There are two variant literal identifiers: empty and null.
As long as a variant variable is unitizlied, it is said to be empty. isEmpty() can be used to determine if a variant was initialized.
A variant (as opposed to all other VBA data types) can be set to null to specificilly indicate the absence of any value or invalid data.
If the «value» of a variant is empty or null can be tested with the isEmpty() and isNull() function.

See also

datatypes
C definition of a VARIANT
The SQL Server data type sql-variant.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758181227, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/VBA/language/datatypes/variant/index(56): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78