Escape characters in VB (carriage return, line feed, tab, etc)

Source: Internet
Author: User
Member Constant Equivalent Description

CRLF

Vbcrlf

CHR (13) + CHR (10)

Carriage return/line feed combination.

Cr

Vbcr

CHR (13)

Carriage return.

Lf

Vblf

CHR (10)

Line Break.

Newline

Vbnewline

CHR (13) + CHR (10)

Line Break.

Nullchar

Vbnullchar

CHR (0)

A string of 0 characters.

N/

Vbnullstring

String with a value of 0

Different from a zero-length string (""), it is used to call an external process.

N/

Vbobjecterror

-2147221504

Error code. The user-defined error number must be greater than this value. For example:

Err.Raise(Number) = vbObjectError + 1000

Tab

Vbtab

CHR (9)

Tab character.

Back

Vbback

CHR (8)

Return character.

Formfeed

Vbformfeed

CHR (12)

Useless in Microsoft Windows.

Verticaltab

Vbverticaltab

CHR (11)

Useless in Microsoft Windows.

 

'When used, the content of the column of the week constant is as follows:

Private sub commandementclick ()
Print "AA" + vbtab + ""
End sub

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.