Name

Unassigned Variable

Syntax

var Unassigned: Variant;

Description

The Unassigned variable is a Variant value that represents an uninitialized variable. Delphi automatically initializes every Variant variable to Unassigned. If you attempt to use an Unassigned value in an expression, Delphi reports runtime error 16 (EVariantError).

Tips and Tricks

  • Calling VarClear is the same as assigning Unassigned to a Variant variable.

  • VarIsEmpty returns True for Unassigned.

See Also

Null Variable, VarClear Procedure, Variant Type, VarIsEmpty Function
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset