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

Illustrate Non Print Codes Function
Illustrate Values Class

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

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.

Examples:
    ? IllustrateNonPrintCodes(Chr$(1) + Chr$(2))
    [1d1o1h][2d2o2h]
    ? IllustrateNonPrintCodes(Chr$(254) + Chr$(255))
    [254d376oFEh][255d377oFFh]
    ? IllustrateNonPrintCodes("Line1" + vbCrLf)
    Line1[13d15oDh][10d12oAh]
    ? IllustrateNonPrintCodes("\[")
    \\\[
See also:
    IllustrateCodes Function
    IllustrateCodesBelow Function
vValue: The string of characters to be illustrated. Function returns Null if vValue is Null or cannot be fixed up to a String.

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