PublicFunctions: MoveVariant

MoveVariant

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



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

Parameters

Destination
[ByRef] Variant. The variable to move the variant value to.
Source
[ByRef] Variant. The variable to move the variant value from.

Remarks

This function moves the contents of the source variant to the destination variant. It does not make a copy. This lowers duplication overhead when a variant value needs to be transfered to another variant.

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

See Also

Project CorLib Overview

Class PublicFunctions Overview