t
Replaces escaped character sequences with a literal version.
Public Function t(
ByRef Text As String ) As String
Parameters
- Text
-
[ByRef]
String.
The string that contains the escaped characters to be replaced.
Return Values
String - A string with escaped character sequence replaced with literal characters.
Supported escaped characters
- \t - Tab
- \n - Linefeed
- \r - Carriage Return
- \a - Bell
- \b - Back Character
- \f - Form Feed
- \v - Vertical Tab
- \0 - Null Character
- \uXXXX - Hex asc value
- \xXXXX - Hex asc value
- \\ - \
Examples
The following example replaces escaped characters in a string with their literal values.
Debug.Print t("This\tis\r\na\ttest")
'Outputs:
This is
a test
See Also
Project CorLib Overview
Class PublicFunctions Overview