wanted support.....
for each ....next statement is not working as i think
it should have
if i write code
<%
dim a(5)
for x=0 to 5
a(x)=x+5
next
for each y in a
response.write y
response.write a(y) & "<br>"
next
%>
the initial value of y is 5 and increments by 1
-------------------------
if i type the statement y = 0 after first next
<%
dim a(5)
for x=0 to 5
a(x)=x+5
next
y = 0
for each y in a
response.write y
response.write a(y) & "<br>"
next
%>
then also there is no difference in result
and if the code is
<%
dim a(5)
for x=0 to 5
a(x)="aaa"
next
for each y in a
response.write y
response.write a(y) & "<br>"
next
%>
the value of y is shown as aaa and generates type mismatch error
can u help me to understand the working of the statement
for each..next
i am working on 'personal web server'
-------------------------------------------
(2)
example on pg.284 in wrox 'beginning asp 3' book
<html><head></title>Transfer and execute example</title>
</head>
<body>
<%
response.write "we are on the original page<hr>"
Server.Execute "page1.html"
response.write "<hr>we are back again on the original page<hr>"
Server.Execute "page2.html"
response.write "<hr>we are back again on the orginal page"
%>
</body>
</html>
----
while i try to excute this i get error
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'Execute'
/ccc/executetransfer.asp, line 8
----
please help...
---
http://www.asptoday.com - the leading site for timely,
in-depth information for ASP developers everywhere.
---
You are currently subscribed to aspx_beginners as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-aspx_beginners-$subst('Recip.MemberIDChar')@p2p.wrox.com