对人好点 [英] Be nice
问题描述
如果Microsoft的某个人知道如何编写VBScript,这可能会有所帮助。因为什么时候是+ VBScript中的字符串连接字符?
http://support.microsoft.com/default...04&Product=asp
-
George Hester
__________________________________
感谢George,我已将问题转发给一些人(当我回顾这篇文章时,我发现了6或7个我不喜欢的东西)。
George Hester <他******** @ hotmail.com>在消息中写道
新闻:#L ************** @ TK2MSFTNGP10.phx.gbl ...
如果微软的某个人知道如何编写VBScript。因为当
是+时VBScript中的字符串连接字符?
http://support.microsoft.com/default...04&Product=asp
-
George Hester
__________________________________
George Hester于2003年3月2日在
microsoft.public上写道。 inetserver.asp.general:
如果微软的某个人知道如何编写VBScript,这可能会有所帮助。
因为什么时候是+ VBScript中的字符串连接字符?
" +"始终是VBScript
和大多数早期Basixc方言中的字符串连接运算符。
&作为一个更具体的选择是Basic的后来者。
停止+操作员有这种行为并保留它为
数字添加和可选的一元操作员行为,将是一个很好的
的事情,恕我直言。
-
Evertjan。
荷兰。
(请在我的电子邮件地址中将x'变为点数)
George Hester写道:如果微软的某个人知道如何编写VBScript,可能会有所帮助。
因为什么时候是+ VBScript中的字符串连接字符?
http://support.microsoft.com/default...04&Product=asp
http://msdn.microsoft.com/library/en...catenation.asp
+既是串联又是加法运算符。
vbscript与+和&之间的唯一区别就是&将迫使连接。如果
操作数都可以强制转换为数字,则会发生添加。如果任一操作数
无法强制转换为数字,则会发生连接。当&使用,
连接是唯一允许的操作,这意味着在操作完成之前两个操作数
都被强制转换为字符串。这是
记录良好。
Bob Barrows
-
Microsoft MVP - ASP / ASP.NET
请回复新闻组。这个电子邮件帐户是我的垃圾邮件陷阱所以我
不经常检查它。如果您必须离线回复,请删除
无垃圾邮件
It may help if someone at Microsoft knows how to write VBScript. Since when was "+" a string concatenation character in VBScript?
http://support.microsoft.com/default...04&Product=asp
--
George Hester
__________________________________
Thanks George, I''ve forwarded the issue along to some folks (when I reviewed
the article, I found 6 or 7 other things I didn''t like).
"George Hester" <he********@hotmail.com> wrote in message
news:#L**************@TK2MSFTNGP10.phx.gbl...
It may help if someone at Microsoft knows how to write VBScript. Since when
was "+" a string concatenation character in VBScript?
http://support.microsoft.com/default...04&Product=asp
--
George Hester
__________________________________
George Hester wrote on 02 nov 2003 in
microsoft.public.inetserver.asp.general:
It may help if someone at Microsoft knows how to write VBScript.
Since when was "+" a string concatenation character in VBScript?
"+" always was a string concatenation operator in VBScript
and in most earlier Basixc dialects.
The "&" as an more specific alternative is a latecomer in Basic.
Stopping the "+" operator having this behavour and reserving it for
numerical adding and optional unary operator behavour, would be a good
thing, IMHO.
--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)
George Hester wrote:It may help if someone at Microsoft knows how to write VBScript.
Since when was "+" a string concatenation character in VBScript?
http://support.microsoft.com/default...04&Product=asp
http://msdn.microsoft.com/library/en...catenation.asp
+ is both a concatenation and an addition operator. The only difference in
vbscript between + and & is that & will force concatenation. If both
operands can be coerced to numbers, addition will occur. If either operand
cannot be coerced to numeric, concatenation will occur. When & is used,
concatenation is the only operation allowed, which means that both operands
are coerced to strings before the operation is done. This is
well-documented.
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don''t check it very often. If you must reply off-line, then remove the
"NO SPAM"
这篇关于对人好点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!