System.VarUtils.VariantCopy
Delphi
function VariantCopy; external oleaut name 'VariantCopy';
Properties
| Type | Visibility | Source | Unit | Parent | 
|---|---|---|---|---|
| function | external public | System.VarUtils.pas | System.VarUtils | System.VarUtils | 
Description
Clears the destination variant and makes a copy of the source variant.
Use VariantCopy to copy the source variant given through Source to the destination variant denoted by Dest, after clearing up Dest using a call to VariantClear.
The possible return values of VariantCopy 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_OUTOFMEMORY | There is not enough memory to complete the operation. | 
| VAR_UNEXPECTED | An unexpected error occurred. | 
| VAR_EXCEPTION | The application raised an exception. |