Function Illustrate Values Class

IllustrateNonPrintCodes

Illustrates the non-printable characters within a string by replacing them with their ASCII codes.. Non-printable characters are replaced by the decimal, octal, and hex codes for the character. Backslash and left-bracket characters prefixed with a backslash.

Signature (Visual Basic / VBA)

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

Code Example

    ? IllustrateNonPrintCodes(Chr$(1) + Chr$(2))
    [1d1o1h][2d2o2h]
    ? IllustrateNonPrintCodes(Chr$(254) + Chr$(255))
    [254d376oFEh][255d377oFFh]
    ? IllustrateNonPrintCodes("Line1" + vbCrLf)
    Line1[13d15oDh][10d12oAh]
    ? IllustrateNonPrintCodes("\[")
    \\\[

Parameters

Parameter Description
vValue The string of characters to be illustrated. Function returns Null if vValue is Null or cannot be fixed up to a String.