System.VarUtils.VariantClear
Delphi
function VariantClear; external oleaut name 'VariantClear';
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | external public | System.VarUtils.pas | System.VarUtils | System.VarUtils |
Description
Clears a variant.
VariantClear first clears the variant given through V and then it reinitializes it, using a call to VariantInit.
The possible return values of VariantClear are given in the following table, together with their meaning.
| Value | Meaning |
|---|---|
|
VAR_OK |
The operation was completed successfully. |
|
VAR_BADVARTYPE |
The variant type of the input parameter is not valid. |
|
VAR_UNEXPECTED |
An unexpected error occurred. |