sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
Hang's Avatar

Is varaible name case sensitive?


Question posted by: Hang (Guest) on July 19th, 2005 06:32 AM
Hi all,

I have wrote a ASP page:
*********************************************
<%@ LANGUAGE="JSCRIPT" %>
<%

var pricelist = "a";

Response.write(concat_str());

%>

<SCRIPT RUNAT=SERVER LANGUAGE="VBScript">
function concat_str()
priceList = priceList & "b"
concat_str = priceList
end function
</Script>
********************************************

When I run this page on IIS4.0/NT, it returns "a"
However, when I run this page on IIS5.0/Win2000, it
returns "ab"!!

Does anyone know why? Is there any documentation on
Microsoft could help?

Thank you.

Hang
3 Answers Posted
Ray at's Avatar
Guest - n/a Posts
#2: Re: Is varaible name case sensitive?

jscript yes, vbscript no.

Ray at home

"Hang" <f11lhc@yahoo.com.hk> wrote in message
news:00c401c345cc$677b13b0$a001280a@phx.gbl...[color=blue]
> Hi all,
>
> I have wrote a ASP page:
> *********************************************
> <%@ LANGUAGE="JSCRIPT" %>
> <%
>
> var pricelist = "a";
>
> Response.write(concat_str());
>
> %>
>
> <SCRIPT RUNAT=SERVER LANGUAGE="VBScript">
> function concat_str()
> priceList = priceList & "b"
> concat_str = priceList
> end function
> </Script>
> ********************************************
>
> When I run this page on IIS4.0/NT, it returns "a"
> However, when I run this page on IIS5.0/Win2000, it
> returns "ab"!!
>
> Does anyone know why? Is there any documentation on
> Microsoft could help?
>
> Thank you.
>
> Hang[/color]


Aaron Bertrand [MVP]'s Avatar
Aaron Bertrand [MVP] July 19th, 2005 06:32 AM
Guest - n/a Posts
#3: Re: Is varaible name case sensitive?

Is one server set up for a default of JScript, and the other VBScript? (See
the last paragraph: www.aspfaq.com/2045)

JScript *is* case sensitive, but I'd be surprised if that's what's happening
here.





"Hang" <f11lhc@yahoo.com.hk> wrote in message
news:00c401c345cc$677b13b0$a001280a@phx.gbl...[color=blue]
> Hi all,
>
> I have wrote a ASP page:
> *********************************************
> <%@ LANGUAGE="JSCRIPT" %>
> <%
>
> var pricelist = "a";
>
> Response.write(concat_str());
>
> %>
>
> <SCRIPT RUNAT=SERVER LANGUAGE="VBScript">
> function concat_str()
> priceList = priceList & "b"
> concat_str = priceList
> end function
> </Script>
> ********************************************
>
> When I run this page on IIS4.0/NT, it returns "a"
> However, when I run this page on IIS5.0/Win2000, it
> returns "ab"!!
>
> Does anyone know why? Is there any documentation on
> Microsoft could help?
>
> Thank you.
>
> Hang[/color]


Hang's Avatar
Guest - n/a Posts
#4: Re: Is varaible name case sensitive?

OK. But any clues why the page return differently under
IIS4.0/NT and IIS5.0/Win2000?

Thank you.
[color=blue]
>-----Original Message-----
>jscript yes, vbscript no.
>
>Ray at home
>
>"Hang" <f11lhc@yahoo.com.hk> wrote in message
>news:00c401c345cc$677b13b0$a001280a@phx.gbl...[color=green]
>> Hi all,
>>
>> I have wrote a ASP page:
>> *********************************************
>> <%@ LANGUAGE="JSCRIPT" %>
>> <%
>>
>> var pricelist = "a";
>>
>> Response.write(concat_str());
>>
>> %>
>>
>> <SCRIPT RUNAT=SERVER LANGUAGE="VBScript">
>> function concat_str()
>> priceList = priceList & "b"
>> concat_str = priceList
>> end function
>> </Script>
>> ********************************************
>>
>> When I run this page on IIS4.0/NT, it returns "a"
>> However, when I run this page on IIS5.0/Win2000, it
>> returns "ab"!!
>>
>> Does anyone know why? Is there any documentation on
>> Microsoft could help?
>>
>> Thank you.
>>
>> Hang[/color]
>
>
>.
>[/color]
 
Not the answer you were looking for? Post your question . . .
196,998 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 196,998 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors