PublicFunctions: CopyVariant

CopyVariant

Provides a way to copy a variant value to another variant without the knowledge if Set needs to be used for objects.



 Public Sub CopyVariant(
	  ByRef Destination As Variant,
	  ByRef Source As Variant )

Parameters

Destination
[ByRef] Variant. The variant variable to receive a copy of the value.
Source
[ByRef] Variant. The variant variable to be copied.

Remarks

This works identical to the Win32 VariantCopyInd API function.

Any value in the destination variant will be released correctly before the source variants is copied into it.

See Also

Project CorLib Overview

Class PublicFunctions Overview