VarUtils.VariantCopyInd

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From VarUtils.pas

	function VariantCopyInd(var Dest: TVarData; const Source: TVarData): HRESULT;


Unit: VarUtils

Type: function

Visibility: public

C++ Information

From VarUtils.hpp

	long __fastcall VariantCopyInd(TVarData & Dest, const TVarData & Source);


Unit: VarUtils

Type: function

Description

Clears the destination variant and makes a copy of the source variant, including the case when the source is of varByRef type.


Use VariantCopyInd to copy the source variant given through Source to the destination variant denoted by Dest, after clearing up Dest using a call to VariantClear.

In the case when the source is of varByRef type, VariantCopyInd performs the indirection and copies the correct information.

The possible return values of VariantCopyInd 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_INVALIDARG

Either one of the arguments is invalid.

VAR_OUTOFMEMORY

There is not enough memory to complete the operation.

VAR_UNEXPECTED

An unexpected error occurred.

VAR_EXCEPTION

The application raised an exception.



See Also

Personal tools
Translations
Newest Version