Special Characters for Visual Basic

This section contains information specific to the Windows product.

Special characters in Visual Basic are specified with the CHR$() function. These special characters are added to the format string by using the + string concatenation operator in Visual Basic. For example:

nargs=ivprintf(id, “*RST”+CHR$(10), 0&).

In Visual Basic, the backslash character can be specified in a format string directly, instead of being “escaped” by prepending it with another backslash. The special characters follow.

Return to iprintf.

Chr$(10)

Send the ASCII LF character with the END indicator set.

Chr$(13)

Send the ASCII CR character.

\

Send the backslash (\) character.1

Chr$(9)

Send the ASCII TAB character.

Chr$(11)

Send the ASCII VERTICAL TAB character.

Chr$(12)

Send the ASCII FORM FEED character.

Chr$(34)

Send the ASCII double-quote () character.