简体   繁体   中英

VB.NET: identifier for TAB?

What identifier should I use for TAB (eg for output to text files)?

There are many choices:

  • vbTab
  • ControlChars.Tab
  • A constant (or public member) in my application set to Chr(9)

What is best practice? And why?

Thumb up for ControlChars.Tab! vb* constants are there for backward compatibility, avoid them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM