Name

VarClear Procedure

Syntax

procedure VarClear(var V: Variant);

Description

VarClear disposes of the old value of V and sets its type to varEmpty.

VarClear is not a real function.

Example

// The following two statements do the same thing:
VarClear(V);
V := Unassigned;

See Also

ClearAnyProc Variable, Unassigned Variable, Variant Type, VarIsEmpty Function

Get Delphi in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.