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.aspx?scid=3Dkb;en-us;253604&Product=3D=
asp

--=20
George Hester
__________________________________

Re: Be nice by Aaron

Aaron
Sun Nov 02 16:05:33 CST 2003

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" <hesterloli@hotmail.com> wrote in message
news:#LxHEhYoDHA.2772@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.aspx?scid=kb;en-us;253604&Product=asp

--
George Hester
__________________________________



Re: Be nice by Evertjan

Evertjan
Sun Nov 02 16:52:34 CST 2003

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)

Re: Be nice by Bob

Bob
Sun Nov 02 16:52:47 CST 2003

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.aspx?scid=kb;en-us;253604&Product=asp


http://msdn.microsoft.com/library/en-us/script56/html/vsidxconcatenation.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"



Re: Be nice by Aaron

Aaron
Sun Nov 02 17:24:11 CST 2003

> + 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.

I don't think George is trying to state that this isn't well-documented. I
think he is just implying (and I tend to agree) that the default
recommendation for string operations be + ... I think they should be using &
in all cases where they are not intending to perform an addition operation
(and I think it's poor that this dual construct was ever there in the first
place). Just because you *can* do something, and that it *is* well
documented, doesn't mean it's the way you *should* do it...

Now, of course, you could argue from the other side, e.g. that the +
operator has multiple functions in other languages, such as T-SQL, JScript,
C#, etc. But when an alternative that is better defined is there, why not
use it instead?



Re: Be nice by Bob

Bob
Sun Nov 02 18:55:08 CST 2003

Aaron Bertrand [MVP] wrote:

> I don't think George is trying to state that this isn't
> well-documented. I think he is just implying (and I tend to agree)
> that the default recommendation for string operations be +

:-)
No, that is your interpretation of what George was saying. I think "It may
help if someone at Microsoft knows how to write VBScript." is a pretty clear
statement. And a very incorrect statement in this case. :-)

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"



Re: Be nice by Ken

Ken
Sun Nov 02 22:54:18 CST 2003

Apparently since version 1 of VBScript according to my WSH Help file.

Well, it seems to be an overloaded operator that does different things
depending what you use it on.

Cheers
Ken

"George Hester" <hesterloli@hotmail.com> wrote in message
news:%23LxHEhYoDHA.2772@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.aspx?scid=kb;en-us;253604&Product=asp

--
George Hester
__________________________________



Re: Be nice by Joe

Joe
Mon Nov 03 03:56:45 CST 2003

"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
news:OAkeLacoDHA.1072@TK2MSFTNGP09.phx.gbl...
> Apparently since version 1 of VBScript according to my WSH Help file.
>
> Well, it seems to be an overloaded operator that does different things
> depending what you use it on.
>
> Cheers
> Ken
>
There's also this behaviour:

Dim sPlus, sAmpersand
sPlus = "Hello " + Null
sAmpersand = "Hello " & Null
WScript.echo sPlus & ""
WScript.echo sAmpersand & ""

Addition sign and Null gives Null, ampersand and Null treats Null as empty
string.

--

Joe




Re: Be nice by CJM

CJM
Mon Nov 03 06:13:32 CST 2003

"Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
news:u$VVoVaoDHA.372@TK2MSFTNGP11.phx.gbl...
> Aaron Bertrand [MVP] wrote:
>
> > I don't think George is trying to state that this isn't
> > well-documented. I think he is just implying (and I tend to agree)
> > that the default recommendation for string operations be +
>
> :-)
> No, that is your interpretation of what George was saying. I think "It may
> help if someone at Microsoft knows how to write VBScript." is a pretty
clear
> statement. And a very incorrect statement in this case. :-)

Actually, I agree with you both.

I agree George said what Bob said, but I think George meant what Aaron said
he meant...! George...??

Personally agree with Aaron. And Bob.

...er, I think.

Yes '+' is overloaded, and thus can be used fairly in this example. But
surely '&' would be the better default choice.

Chris



Re: Be nice by Roland

Roland
Tue Nov 04 04:17:09 CST 2003

It's overloaded and confusing.

<%@ Language=VBScript %>
<%
Option Explicit
dim an, a, eq, e, plus
an = "&" + "&"
a = "&"
eq = "=" & "="
e = "="
plus = "+"
%>
<script type="text/vbscript">
sub alertit(a, b)
msgbox "" & a + "<%=eq%>" + b & "<%=e%>TRUE", 64, "TRUE"
end sub
</script>
<script type="text/javascript">
var a<%=e%>"<%=a%>" <%=plus%> "<%=a%>", b<%=e%>"<%=an%>";
if(a <%=eq%> '&&' <%=an%> b <%=eq%> '&&') {
alert("a" <%=plus%> "<%=eq%>" <%=plus%> "b" <%=plus%> "<%=e%>" <%=plus%>
"TRUE");
alertit(a, b);
}
</script>

"CJM" <cjmwork@yahoo.co.uk> wrote in message
news:eqj6sNgoDHA.2488@TK2MSFTNGP12.phx.gbl...
"Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
news:u$VVoVaoDHA.372@TK2MSFTNGP11.phx.gbl...
> Aaron Bertrand [MVP] wrote:
>
> > I don't think George is trying to state that this isn't
> > well-documented. I think he is just implying (and I tend to agree)
> > that the default recommendation for string operations be +
>
> :-)
> No, that is your interpretation of what George was saying. I think "It may
> help if someone at Microsoft knows how to write VBScript." is a pretty
clear
> statement. And a very incorrect statement in this case. :-)

Actually, I agree with you both.

I agree George said what Bob said, but I think George meant what Aaron said
he meant...! George...??

Personally agree with Aaron. And Bob.

...er, I think.

Yes '+' is overloaded, and thus can be used fairly in this example. But
surely '&' would be the better default choice.

Chris




Re: Be nice by George

George
Wed Nov 05 20:50:50 CST 2003

Dang all I know is that the sample didn't work with "+" and did with =
"&." Must be something else I did then to make it work for it didn't as =
written. Of course I hooked it up to my own DSN.

--=20
George Hester
__________________________________
"George Hester" <hesterloli@hotmail.com> wrote in message =
news:#LxHEhYoDHA.2772@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.aspx?scid=3Dkb;en-us;253604&Product=3D=
asp

--=20
George Hester
__________________________________

Re: Be nice by George

George
Wed Nov 05 20:58:40 CST 2003

This is a multi-part message in MIME format.

------=_NextPart_000_0040_01C3A3E7.F8FCB630
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_0041_01C3A3E7.F8FCB630"


------=_NextPart_001_0041_01C3A3E7.F8FCB630
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Response.Write iCnt + " <a href=3D""http://" + rs(1) + """ =
target=3D_new>" + rs(1) + "</a><BR>"


Response.Write iCnt & " <a href=3D""http://" & rs(1) & """ =
target=3D_new>" & rs(1) & "</a><BR>"
No problem.

Note there are enough strings in here to show that coersion should not =
be an issue.

--=20
George Hester
__________________________________
"George Hester" <hesterloli@hotmail.com> wrote in message =
news:#LxHEhYoDHA.2772@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.aspx?scid=3Dkb;en-us;253604&Product=3D=
asp

--=20
George Hester
__________________________________
------=_NextPart_001_0041_01C3A3E7.F8FCB630
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Response.Write iCnt + " &lt;a =
href=3D""http://" +=20
rs(1) + """ target=3D_new&gt;" + rs(1) + =
"&lt;/a&gt;&lt;BR&gt;"</FONT></DIV>
<DIV><IMG alt=3D"" hspace=3D0 =
src=3D"cid:003b01c3a411$e1c37bf0$c673c318@hester1"=20
align=3Dbaseline border=3D0></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Response.Write iCnt &amp; " &lt;a =
href=3D""http://"=20
&amp; rs(1) &amp; """ target=3D_new&gt;" &amp; rs(1) &amp; </FONT><FONT =
face=3DArial=20
size=3D2>"&lt;/a&gt;&lt;BR&gt;"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>No problem.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Note there are enough strings in here =
to show that=20
coersion should not be an issue.</FONT></DIV>
<DIV><BR><FONT face=3DArial size=3D2>-- <BR>George=20
Hester<BR>__________________________________</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>"George Hester" &lt;</FONT><A=20
href=3D"mailto:hesterloli@hotmail.com"><FONT face=3DArial=20
size=3D2>hesterloli@hotmail.com</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote in=20
message </FONT><A =
href=3D"news:#LxHEhYoDHA.2772@TK2MSFTNGP10.phx.gbl"><FONT=20
face=3DArial =
size=3D2>news:#LxHEhYoDHA.2772@TK2MSFTNGP10.phx.gbl</FONT></A><FONT=20
face=3DArial size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>It may =
help if someone=20
at Microsoft knows how to write VBScript.&nbsp; Since when was "+" a =
string=20
concatenation character in VBScript?<BR><BR></FONT><A=20
href=3D"http://support.microsoft.com/default.aspx?scid=3Dkb;en-us;253604&=
amp;Product=3Dasp"><FONT=20
face=3DArial=20
size=3D2>http://support.microsoft.com/default.aspx?scid=3Dkb;en-us;253604=
&amp;Product=3Dasp</FONT></A><BR><BR><FONT=20
face=3DArial size=3D2>-- <BR>George=20
Hester<BR>__________________________________</FONT></BODY></HTML>

------=_NextPart_001_0041_01C3A3E7.F8FCB630--

------=_NextPart_000_0040_01C3A3E7.F8FCB630
Content-Type: image/gif;
name="pluserror.gif"
Content-Transfer-Encoding: base64
Content-ID: <003b01c3a411$e1c37bf0$c673c318@hester1>

R0lGODdhiQGmAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwMDcwKbK8EAgAGAgAIAgAKAgAMAg
AOAgAABAACBAAEBAAGBAAIBAAKBAAMBAAOBAAABgACBgAEBgAGBgAIBgAKBgAMBgAOBgAACAACCA
AECAAGCAAICAAKCAAMCAAOCAAACgACCgAECgAGCgAICgAKCgAMCgAOCgAADAACDAAEDAAGDAAIDA
AKDAAMDAAODAAADgACDgAEDgAGDgAIDgAKDgAMDgAODgAAAAQCAAQEAAQGAAQIAAQKAAQMAAQOAA
QAAgQCAgQEAgQGAgQIAgQKAgQMAgQOAgQABAQCBAQEBAQGBAQIBAQKBAQMBAQOBAQABgQCBgQEBg
QGBgQIBgQKBgQMBgQOBgQACAQCCAQECAQGCAQICAQKCAQMCAQOCAQACgQCCgQECgQGCgQICgQKCg
QMCgQOCgQADAQCDAQEDAQGDAQIDAQKDAQMDAQODAQADgQCDgQEDgQ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EN+403jScYyXnOMC
97jDEdLliHP85DROuclljnIuhzyrfMWhznPO8537nK+WgXnUPp4QkQ9d6CNfOVFv3t6heYTkNI+5
xlUe9aN7lekwU7pBoD71mXe95goxOuuEQnQ2M13pGnUuRZ5e8YKInY359SzZkd41EW+U7tOjrXRt
fnV/G+/tznW41p/WdoIAfq/nexveG0IKkFB58TfVey83UnaKtPziaMc5RVuodbZDPryKTf+oPEWP
xcIvveoQaTycL9zhgVzYL7D3i90Z/3m1J9aPg9967l2P9en9D7xXBXPtmTlFzhq/tKifrE9GB5LG
N775sIe+/f7BfOqbPfm+ByT52BuRyoPZ72vHfN6tKfoUYpXrYVc7OSNp0eTRHvuMX/7FnT9/6tf/
+bK38OE5PPy0GhKgk2d5uwdnvScRxcdcu4d+Rad+xld8azVZ/UdU8gdn9keBqucXFYiBIiGA8Bd5
ffVcINd3+2eA4meAFhVbGHU/CogQIxheDth+J/h+X1c3E4iBF0h/Flh/cHZ9M4hVMMh9qTeAe5MR
Lmc8LaRY/oRWdWN6AtGCA3V73VVO5UflXN7ndpa3SR2Wgap3YRmYf+DHfx14UrlkQWkXgnznhLVT
giUVdGGIZD0IESHRhBW4cRcXh/Vmh9/3hkUhhIQngu6Dhs3jfjEUgZ31eG3Icqw3fWZ0iL4kiJLH
d2f4hwHodGyohznFiAexgXhoNREoNFXYfVj3c6LYc6Q4iqNYienndakIdguoihZxeS+HiZ7YiRNG
iywmhJeHYrq4i7zYi7rIhF+YNJ84EIA4i7JYi364EQAXcBrni874jNAIYgYXjdRYjbw4jdaYjdpo
YbgIcctYGov1jZIRjuLoHHBXjpURifxmZEq8to6I047uaDjwGI+CM4/06Df2eI98k4/6mDf82I93
848AOTcCOZBxsxTbmJAKuZAM2ZAO+ZAQGZESOZHbiI4WeZEYmZEa+R4BAQA7

------=_NextPart_000_0040_01C3A3E7.F8FCB630--


Re: Be nice by keyur

keyur
Thu Nov 06 00:31:23 CST 2003

This sounds crazy... when did developers @ microsoft started mixing
languages... which is even not permitted in .NET :)



Keyur Shah
Verizon Communications
732-423-0745

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Re: Be nice by Bob

Bob
Thu Nov 06 07:55:10 CST 2003

keyur shah wrote:
> This sounds crazy... when did developers @ microsoft started mixing
> languages... which is even not permitted in .NET :)

Again: they didn't "+" is a perfectly good concatenation character in
vbscript. I've already posted a link to the documentation in this thread.

That said, I always use "&" for concatenation in vbscript. This habit really
burns me when I'm writing jscript code ...

Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.



Re: Be nice by Bob

Bob
Thu Nov 06 07:56:56 CST 2003

This is a multi-part message in MIME format.

------=_NextPart_000_00F8_01C3A443.EE21C320
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_00F9_01C3A443.EE21C320"


------=_NextPart_001_00F9_01C3A443.EE21C320
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

As previously noted in this thread, "+" and "&" handle Nulls =
differently. Is there a possibility that any of the fields in your =
recordset contain Null?

Bob Barrows

--=20
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From =
header is my spam trap, so I don't check it very often. You will get a =
quicker response by posting to the newsgroup.
"George Hester" <hesterloli@hotmail.com> wrote in message =
news:eYVRjHBpDHA.2676@TK2MSFTNGP11.phx.gbl...
Response.Write iCnt + " <a href=3D""http://" + rs(1) + """ =
target=3D_new>" + rs(1) + "</a><BR>"


Response.Write iCnt & " <a href=3D""http://" & rs(1) & """ =
target=3D_new>" & rs(1) & "</a><BR>"
No problem.

Note there are enough strings in here to show that coersion should not =
be an issue.

--=20
George Hester
__________________________________
"George Hester" <hesterloli@hotmail.com> wrote in message =
news:#LxHEhYoDHA.2772@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.aspx?scid=3Dkb;en-us;253604&Product=3D=
asp

--=20
George Hester
__________________________________
------=_NextPart_001_00F9_01C3A443.EE21C320
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1264" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>As previously noted in this thread, "+" =
and "&amp;"=20
handle Nulls differently. Is there a possibility that any of the fields =
in your=20
recordset contain Null?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Bob Barrows</FONT></DIV>
<DIV><BR>-- <BR>Microsoft MVP -- ASP/ASP.NET<BR>Please reply to the =
newsgroup.=20
The email account listed in my From header is my spam trap, so I don't =
check it=20
very often. You will get a quicker response by posting to the =
newsgroup.</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"George Hester" &lt;<A=20
href=3D"mailto:hesterloli@hotmail.com">hesterloli@hotmail.com</A>&gt; =
wrote in=20
message <A=20
=
href=3D"news:eYVRjHBpDHA.2676@TK2MSFTNGP11.phx.gbl">news:eYVRjHBpDHA.2676=
@TK2MSFTNGP11.phx.gbl</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Response.Write iCnt + " &lt;a =
href=3D""http://" +=20
rs(1) + """ target=3D_new&gt;" + rs(1) + =
"&lt;/a&gt;&lt;BR&gt;"</FONT></DIV>
<DIV><IMG alt=3D"" hspace=3D0 =
src=3D"cid:00f301c3a46d$d6ee2e30$e61610ac@nypro.com"=20
align=3Dbaseline border=3D0></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Response.Write iCnt &amp; " &lt;a =
href=3D""http://"=20
&amp; rs(1) &amp; """ target=3D_new&gt;" &amp; rs(1) &amp; =
</FONT><FONT=20
face=3DArial size=3D2>"&lt;/a&gt;&lt;BR&gt;"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>No problem.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Note there are enough strings in here =
to show=20
that coersion should not be an issue.</FONT></DIV>
<DIV><BR><FONT face=3DArial size=3D2>-- <BR>George=20
Hester<BR>__________________________________</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>"George Hester" &lt;</FONT><A=20
href=3D"mailto:hesterloli@hotmail.com"><FONT face=3DArial=20
size=3D2>hesterloli@hotmail.com</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote in=20
message </FONT><A =
href=3D"news:#LxHEhYoDHA.2772@TK2MSFTNGP10.phx.gbl"><FONT=20
face=3DArial =
size=3D2>news:#LxHEhYoDHA.2772@TK2MSFTNGP10.phx.gbl</FONT></A><FONT=20
face=3DArial size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>It =
may help if=20
someone at Microsoft knows how to write VBScript.&nbsp; Since when was =
"+" a=20
string concatenation character in VBScript?<BR><BR></FONT><A=20
=
href=3D"http://support.microsoft.com/default.aspx?scid=3Dkb;en-us;253604&=
amp;Product=3Dasp"><FONT=20
face=3DArial=20
=
size=3D2>http://support.microsoft.com/default.aspx?scid=3Dkb;en-us;253604=
&amp;Product=3Dasp</FONT></A><BR><BR><FONT=20
face=3DArial size=3D2>-- <BR>George=20
Hester<BR>__________________________________</FONT> =
</BLOCKQUOTE></BODY></HTML>

------=_NextPart_001_00F9_01C3A443.EE21C320--

------=_NextPart_000_00F8_01C3A443.EE21C320
Content-Type: image/gif;
name="pluserror.gif"
Content-Transfer-Encoding: base64
Content-ID: <00f301c3a46d$d6ee2e30$e61610ac@nypro.com>

R0lGODdhiQGmAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwMDcwKbK8EAgAGAgAIAgAKAgAMAg
AOAgAABAACBAAEBAAGBAAIBAAKBAAMBAAOBAAABgACBgAEBgAGBgAIBgAKBgAMBgAOBgAACAACCA
AECAAGCAAICAAKCAAMCAAOCAAACgACCgAECgAGCgAICgAKCgAMCgAOCgAADAACDAAEDAAGDAAIDA
AKDAAMDAAODAAADgACDgAEDgAGDgAIDgAKDgAMDgAODgAAAAQCAAQEAAQGAAQIAAQKAAQMAAQOAA
QAAgQCAgQEAgQGAgQIAgQKAgQMAgQOAgQABAQCBAQEBAQGBAQIBAQKBAQMBAQOBAQABgQCBgQEBg
QGBgQIBgQKBgQMBgQOBgQACAQCCAQECAQGCAQICAQKCAQMCAQOCAQACgQCCgQECgQGCgQICgQKCg
QMCgQOCgQADAQCDAQEDAQGDAQIDAQKDAQMDAQODAQADgQCDgQEDgQGDgQIDgQKDgQMDgQODgQAAA
gCAAgEAAgGAAgIAAgKAAgMAAgOAAgAAggCAggEAggGAggIAggKAggMAggOAggABAgCBAgEBAgGBA
gIBAgKBAgMBAgOBAgABggCBggEBggGBggIBggKBggMBggOBggACAgCCAgECAgGCAgICAgKCAgMCA
gOCAgACggCCggECggGCggICggKCggMCggOCggADAgCDAgEDAgGDAgIDAgKDAgMDAgODAgADggCDg
gEDggGDggIDggKDggMDggODggAAAwCAAwEAAwGAAwIAAwKAAwMAAwOAAwAAgwCAgwEAgwGAgwIAg
wKAgwMAgwOAgwABAwCBAwEBAwGBAwIBAwKBAwMBAwOBAwABgwCBgwEBgwGBgwIBgwKBgwMBgwOBg
wACAwCCAwECAwGCAwICAwKCAwMCAwOCAwACgwCCgwECgwGCgwICgwKCgwMCgwOCgwADAwCDAwEDA
wGDAwIDAwKDAwP/78KCgpICAgP8AAAD/AP//AAAA//8A/wD//////yH5BAAAAAAALAAAAACJAaYA
AAj/AA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5MR
Lmc8LaRY/oRWdWN6AtGCA3V73VVO5UflXN7ndpa3SR2Wgap3YRmYf+DHfx14UrlkQWkXgnznhLVT
giUVdGGIZD0IESHRhBW4cRcXh/Vmh9/3hkUhhIQngu6Dhs3jfjEUgZ31eG3Icqw3fWZ0iL4kiJLH
d2f4hwHodGyohznFiAexgXhoNREoNFXYfVj3c6LYc6Q4iqNYienndakIdguoihZxeS+HiZ7YiRNG
iywmhJeHYrq4i7zYi7rIhF+YNJ84EIA4i7JYi364EQAXcBrni874jNAIYgYXjdRYjbw4jdaYjdpo
YbgIcctYGov1jZIRjuLoHHBXjpURifxmZEq8to6I047uaDjwGI+CM4/06Df2eI98k4/6mDf82I93
848AOTcCOZBxsxTbmJAKuZAM2ZAO+ZAQGZESOZHbiI4WeZEYmZEa+R4BAQA7

------=_NextPart_000_00F8_01C3A443.EE21C320--


Re: Be nice by Ray

Ray
Thu Nov 06 08:10:56 CST 2003


"Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
news:up4Kf2GpDHA.2820@TK2MSFTNGP10.phx.gbl...

>
> Again: they didn't "+" is a perfectly good concatenation character in
> vbscript. I've already posted a link to the documentation in this thread.
>
> That said, I always use "&" for concatenation in vbscript. This habit
really
> burns me when I'm writing jscript code ...

Have you coded in php at all? That's the stupidest concatenator I've ever
seen. . It goes against all my instincts, but that's just because I was
raised in a Microsoft family, I guess.

Ray at work



Re: Be nice by Bob

Bob
Thu Nov 06 08:36:59 CST 2003

Ray at <%=sLocation%> wrote:
> "Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
> news:up4Kf2GpDHA.2820@TK2MSFTNGP10.phx.gbl...
>
>>
>> Again: they didn't "+" is a perfectly good concatenation character
>> in vbscript. I've already posted a link to the documentation in this
>> thread.
>>
>> That said, I always use "&" for concatenation in vbscript. This
>> habit really burns me when I'm writing jscript code ...
>
> Have you coded in php at all?

Nope.

>That's the stupidest concatenator I've
> ever seen. .

Uuuum - what concatenator are you talking about?

Bob

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.



Re: Be nice by Ray

Ray
Thu Nov 06 08:54:23 CST 2003


"Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
news:Oq122NHpDHA.2528@TK2MSFTNGP10.phx.gbl...

> > Have you coded in php at all?
>
> Nope.
>
> >That's the stupidest concatenator I've
> > ever seen. .
>
> Uuuum - what concatenator are you talking about?

.

$var1="Bob";
$var2="Barrows";
$var3=$var1." ".$var2;

Ray at work




Re: Be nice by Aaron

Aaron
Thu Nov 06 08:59:40 CST 2003

> $var3=$var1." ".$var2;

Yeah, that's sexy.

Uh, wait, no it's not.



Re: Be nice by Bob

Bob
Thu Nov 06 09:09:12 CST 2003

Ray at <%=sLocation%> wrote:
> "Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
> news:Oq122NHpDHA.2528@TK2MSFTNGP10.phx.gbl...
>
>>> Have you coded in php at all?
>>
>> Nope.
>>
>>> That's the stupidest concatenator I've
>>> ever seen. .
>>
>> Uuuum - what concatenator are you talking about?
>
> .
>
> $var1="Bob";
> $var2="Barrows";
> $var3=$var1." ".$var2;

Ughhhh!

Bob
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.



Re: Be nice by William

William
Thu Nov 06 09:59:14 CST 2003

Bob Barrows wrote:
> Ray at <%=sLocation%> wrote:
>> "Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
>> news:Oq122NHpDHA.2528@TK2MSFTNGP10.phx.gbl...
>>
>>>> Have you coded in php at all?
>>>
>>> Nope.
>>>
>>>> That's the stupidest concatenator I've
>>>> ever seen. .
>>>
>>> Uuuum - what concatenator are you talking about?
>>
>> .
>>
>> $var1="Bob"; <