|
Public Function ReverseVariantVector( _
ByRef rVector() As Variant _
, Optional ByVal vMinElem As Variant _
, Optional ByVal vMaxElem As Variant _
) As Boolean rVector
+----+ +----+
| 12 | <-- | TX |
+----+ +----+
| CA | | CA |
+----+ +----+
| TX | | 12 |
+----+ +----+Example: Assuming
Static avarKeys(0 To 2) As Variant
avarIn(0) = 12
avarIn(1) = "CA"
avarIn(2) = "TX"
for example
ReverseVariantVector(avarKeys()) = TrueSee also: ShuffleVariantVector Function
TranspostVariantMatrix FunctionrVector: One-dimensional array of Variant values whose elements' positions will be reversed. rVector must already be dimensioned before it is passed to this function or else an error will occur. Copyright © 1999-2005 Entisoft