String Constants
The following constants are replacements for one or more characters. For instance, to add a line break to a string that’s not being displayed in a web page, you can use a statement like the following:
sMsg = sMsg & vbCrLf
|
Constant |
Value |
Description |
|---|---|---|
|
|
Chr$(13) |
Carriage return |
|
|
Chr$(10) & Chr$(13) |
Carriage return and linefeed characters |
|
|
Chr$(12) |
Form-feed character |
|
|
Chr$(10) |
Linefeed character |
|
|
Platform Specific |
New line character |
|
|
Chr$(0) |
Null character |
|
|
Zero Length String |
Null string |
|
|
Chr$(9) |
Tab character |
|
|
Chr$(11) |
Vertical tab character |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access