Function Illustrate Values Class

IllustrateKeys

Illustrates the non-printable characters within a string using their keystrokes. Control characters prefixed with "^" (caret stands for the Ctrl key). Other non-printable characters converted to "%" followed by decimal code (percent stands for the Alt key). "\", "^", and "%" prefixed with a backslash.

Signature (Visual Basic / VBA)

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

Code Example

    IllustrateKeys(Chr$(1) + Chr$(2)) = "^A^B"
    IllustrateKeys(Chr$(254) + Chr$(255)) = "%254%255"
    IllustrateKeys("Line1" + vbCrLf) = "Line1^M^J"
    IllustrateKeys("\^%") = "\\\^\%"

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.