PublicFunctions: 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 )
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.