vbLf, vbCrLf & 之间的差异vbCr 常数 [英] Differences Between vbLf, vbCrLf & vbCr Constants
问题描述
我使用了诸如 vbLf
、 vbCrLf
之类的常量 &vbCr
在 MsgBox 中;它在 MsgBox 中产生相同的输出(文本Hai"出现在第一段,欢迎"出现在下一段)
I used constants like vbLf
, vbCrLf
& vbCr
in a MsgBox; it produces same output in a MsgBox (Text "Hai" appears in a first paragraph and a word "Welcome" appears in a next Paragraph )
MsgBox("Hai" & vbLf & "Welcome")
MsgBox ("Hai" & vbCrLf & "Welcome")
MsgBox("Hai" & vbCr & "Welcome")
我知道 vbLf
, vbCrLf
&vbCr
用于打印和显示功能.
I know vbLf
, vbCrLf
& vbCr
are used for print and display functions.
我想知道 vbLf
, vbCrLf
& 之间的区别vbCr
常量.
I want to know the Difference between the vbLf
, vbCrLf
& vbCr
constants.
推荐答案
Constant Value Description
----------------------------------------------------------------
vbCr Chr(13) Carriage return
vbCrLf Chr(13) & Chr(10) Carriage return–linefeed combination
vbLf Chr(10) Line feed
vbCr : - 返回到行首
表示用于打印和显示功能的回车字符.vbCrLf : - 类似于按 Enter
表示 回车 字符与 换行符 组合用于打印和显示功能.vbCrLf : - similar to pressing Enter
Represents a carriage-return character combined with a linefeed character for print and display functions.vbLf : - 转到下一行
表示用于打印和显示功能的换行符.这篇关于vbLf, vbCrLf & 之间的差异vbCr 常数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!