Section B.8. String Constants

Table of contents:

B 8 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

vbCr

Chr(13)

Carriage return

vbCrLf

Chr(10) & Chr(13)

Carriage return and linefeed characters

vbFormFeed

Chr(12)

Form-feed character

vbLf

Chr(10)

Linefeed character

vbNewLine

Platform Specific

New line character

vbNullChar

Chr(0)

Null character

vbNullString

0

Null pointer, used for calling external routines

vbTab

Chr(9)

Tab character

vbVertical Tab

Chr(11)

Vertical tab character

Part I: The Basics

Introduction

Program Structure

Data Types and Variables

Error Handling and Debugging

VBScript with Active Server Pages

Programming Outlook Forms

Windows Script Host 5.6

VBScript with Internet Explorer

Windows Script Components

Part II: Reference

Part III: Appendixes

Appendix A. Language Elements by Category

Appendix B. VBScript Constants

Appendix C. Operators

Appendix E. The Script Encoder



Vbscript in a Nutshell
VBScript in a Nutshell, 2nd Edition
ISBN: 0596004885
EAN: 2147483647
Year: 2003
Pages: 335

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net