Chr(13)和Chrw(13)之间的差异 [英] Difference between Chr(13) and Chrw(13)

查看:297
本文介绍了Chr(13)和Chrw(13)之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Chr(13)和Chrw(13)是什么? chr(13)是用在VB还是C#?

What is Chr(13) and Chrw(13)? Is chr(13) used in VB or C#?

推荐答案

在VB中,



In VB,

Chr(13) = Carriage Return - (moves cursor to lefttmost side)
ChrW(13) = New Line (drops cursor down one line/ Enter)





组合两者都用于在新行的开头打字。



http://answers.yahoo.com/question/index?qid=20090216120257AADuYZG [ ^ ]



http://bytes.com/topic/visual-basic-net/a nswers / 366833-microsoft-visualbasic-chrw [ ^ ]


基本上,Chr(13)和ChrW(13)是相等的。



但是ChrW接受unicode字符,而Chr只接受ANSI并使用当前代码页将任何整数值从0转换为255到一个Char



更多信息msdn: Chr,ChrW Functions



不允许Chr(256),但是ChrW(256)没问题(256只是0-255范围之外的一个例子,我不知道unicode char 256后面是哪个符号)
Basically, Chr(13) and ChrW(13) are equal.

But ChrW accepts unicode characters, and Chr only ANSI and converts any integer value from 0 to 255 using the current code page to a Char

more information on msdn: Chr, ChrW Functions

Chr(256) is not allowed, but ChrW(256) is OK (256 is only an example outside range 0-255, I do not know which symbol is behind the unicode char 256)


Chr的有效范围是0到255,









ChrW的有效范围是-32768到65535.







Chr(13)=回车 - (移动光标到最左边)



Microsoft.VisualBasic.ChrW(13)是enter
The valid range for Chr is 0 through 255,

and


the valid range for ChrW is -32768 through 65535.



Chr(13) = Carriage Return - (moves cursor to lefttmost side)

Microsoft.VisualBasic.ChrW(13) is "enter"


这篇关于Chr(13)和Chrw(13)之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆