|
Public Function OffsetVariantMatrix( _
ByRef rTo() As Variant _
, ByRef vFm() As Variant _
, Optional ByVal vOffset1 As Variant _
, Optional ByVal vOffset2 As Variant _
) As Boolean rTo vFm
1 2 3 0 1 2
+----+----+----+ +----+----+----+
1 | 12 | 34 | WV | <-- 0 | 12 | 34 | WV |
+----+----+----+ +----+----+----+
2 | 21 | 43 | CA | 1 | 21 | 43 | CA |
+----+----+----+ +----+----+----+Example: Assuming
Static avarIn(0 To 45, 0 To 12) As Variant
avarIn(1, 1) = "Smith"
Dim avarOut() As Variant
for example
OffsetVariantMatrix(avarOut(), avarIn(), 1, 1) = TrueSee also: OffsetVariantVector Function (for one-dimensional arrays)
CopyVariantMatrix Function (array bounds stay the same)
OverlayVariantMatrix 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