Signature (Visual Basic / VBA)
Public Function VariantMatrixToStringMatrix( _
ByRef rTo() As String _
, ByRef vFm() As Variant _
) As Boolean
Code Example
Assuming
Static avarNames(0 To 1, 0 To 1) As Variant
avarNames(1, 1) = "Car"
Dim astrNames() As String
for example
VariantMatrixToStringMatrix(astrNames(), avarNames()) = True
leaves
astrNames(0, 0) = ""
astrNames(0, 1) = ""
astrNames(1, 0) = ""
astrNames(1, 1) = "Car"
Parameters
| Parameter | Description |
|---|---|
| rTo | Dynamic array of Strings that will be dimensioned with two dimensions before it receives copy of each of the elements in vFm. |
| vFm | Two-dimensional array of Variant values that will be copied to array rTo. |
Return Value
Function currently always returns True.