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

Variant To Variant String Function
Convert Values Class

Public Function VariantToVariantString( _
    ByVal vValue As Variant _
    ) As String

"Variant Value To Variant String" or "Variant String From Variant Value"
Represents any type of value as a "Variant String."
For the purposes of this function, a "Variant String" is one which represents some type of value and also contains information about the type of value being represented.
Inverse of the VariantStringToVariant function.

    VariantToVariantString(CInt(2)) = Chr$(2) + Chr$(2) + Chr$(0)
    VariantToVariantString(CLng(2)) = Chr$(3) + Chr$(2) + Chr$(0) + Chr$(0) + Chr$(0)
See also:
    VariantStringToVariant Function
    MakeVarType Function
This function will create a string that can be converted back into the original type of value without requiring the type information to be stored independently. It uses the appropriate Make function to encode the internal representation of a value along with information about the data type of the value.
vValue: The value which is to be coerced into a string and returned along with information about the type of the original value.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.