|
Public Function OffsetVariantVector( _
ByRef rTo() As Variant _
, ByRef vFm() As Variant _
, Optional ByVal vOffset As Variant _
) As Boolean rTo vFm
+----+ +----+
1 | 12 | <-- 0 | 12 |
+----+ +----+
2 | CA | 1 | CA |
+----+ +----+Example: Assuming
Static avarIn(0 To 45) As Variant
avarIn(1) = "Smith"
Dim avarOut() As Variant
for example
OffsetVariantVector(avarOut(), avarIn(), 1) = TrueSee also: OffsetVariantMatrix Function (for two-dimensional arrays)
CopyVariantVector Function (array bounds stay the same)
OverlayVariantVector FunctionrTo: Destination array that will receive a copy of array vFm. This function will attempt to re-dimension rTo so that it has the same dimensions as (but different bounds than) vFm. It will ignore errors during that re-dimension so that rTo can be a Static array. If rTo is Static, it must be two-dimensional and have the appropriate upper and lower bounds. Copyright © 1999-2005 Entisoft