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

Variant To String Function
Convert Values Class

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

Converts any type of Variant into a string.
Null and Empty is converted to a zero-length string.

Examples:
    VariantToString(Null) = ""
    VariantToString(EmptyValue) = ""
    VariantToString("Word") = "Word"
    VariantToString(123456) = "123456"
See also:
    NullToBlank Function
    CStr Function (Visual Basic)
vValue: The value which is to be converted to a string. Function returns an empty string if vValue is Null or Empty. Function generates an error when passed things like object pointers which have no string representation.

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