Signature (Visual Basic / VBA)
Public Sub SetVariants( _
ByRef rDest As Variant _
, ByRef rSrc As Variant _
)
Code Examples
Assuming
Dim varOne As Variant
Dim varTwo As Variant
varOne = "1"
varTwo = "2"
for example
SetVariants varOne, varTwo
leaves
varOne = "2"
varTwo = "2"
Integer and Variant with Integer value.
String and Variant with String value.
Double and Variant with Long value.
Variant with Integer value and Variant with String value.
Parameters
| Parameter | Description |
|---|---|
| rDest | Value which is to be set to that of rSrc. |
| rSrc | Value which is to be copied into rDest. |
Notes & Version History
| Details | For example, the following types of arguments would be compatible: |
| Note | This function only modifies the rDest argument. rSrc is passed by-reference for performance reasons. |
| v1.3 Addition | This new Subroutine is used by the Stack data structure Class. |