Function Illustrate Values Class

IllustrateDebug

Illustrate a Variant value and its type. Illustrates the characters which are not printable within the Debug window using their keystrokes. Version of IllustrateDebugString that handles any type of data.

Signature (Visual Basic / VBA)

Public Function IllustrateDebug( _
    ByVal vValue As Variant _
    ) As Variant

Code Example

    ? IllustrateDebug("Line1" + vbCrLf + "Line2")
    "Line1^M^JLine2" (String * 12)
    ? IllustrateDebug(23%)
    23 (Integer)
    ? IllustrateDebug(23&)
    23 (Long)
    ? IllustrateDebug(EmptyValue)
    (Empty)
    ? IllustrateDebug(Null)
    Null (Null)

Parameters

Parameter Description
vValue The value that will be illustrated (converted to a string) along with its data type.

Notes & Version History

Note This function uses IllustrateDebugString to illustrate String values, and it uses VarTypeToString to get the value's data type.