<-- Previous || Up || Next -->

Variant Matrix To String Matrix Function
Array Conversions Class

Public Function VariantMatrixToStringMatrix( _
      ByRef rTo() As String _
    , ByRef vFm() As Variant _
    ) As Boolean

Convert a Variant matrix into a String matrix.
Copies each of the elements of a two-dimensional Variant array into a two-dimensional array of String values.

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"
See also:
    StringMatrixToVariantMatrix Function (inverse)
    VariantToString Function (fix-up rules)
    VariantVectorToStringVector Function
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.

Return to ENTISOFT Home Page

Copyright © 1999-2005 Entisoft