System.Variants.VarCopyNoInd
Delphi
procedure VarCopyNoInd(var Dest: Variant; const Source: Variant);
C++
extern DELPHI_PACKAGE void __fastcall VarCopyNoInd(System::Variant &Dest, const System::Variant &Source);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Variants.pas System.Variants.hpp |
System.Variants | System.Variants |
Description
Copies a Variant.
VarCopyNoInd copies the variant given by Source into the variant given by Dest. Calling VarCopyNoInd in C++ or Delphi code is equivalent to a simple variant assignment in Delphi code.
Dest can be a Variant or an OleVariant, and it must be possible to assign a value to it.
Source is defined as a Variant, but an OleVariant is also allowed because it is a compatible type. However, Source can't have a VarType that includes the varByRef bit.
The following table lists the expected behavior when using Variant and OleVariant types as parameters:
Dest | Source | Behavior |
---|---|---|
Variant |
OleVariant |
Works as expected. |
Variant |
Variant |
Works as expected. |
OleVariant |
OleVariant |
Works as expected. |
OleVariant |
Variant |
Source should be implicitly cast to an OleVariant. |