ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Closed Thread
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old August 22nd, 2003, 04:42 PM
mazbball32 mazbball32 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 22 mazbball32 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Please help

I have this simple script and cannot get my command to execute correctly. Please advise.

<HTML>
<HEAD><TITLE>Our First ASP Script</TITLE></HEAD>
<H1><B>Our First ASP Script</B></H1>
<BODY>

Let's Count up to 5.

<BR>
<HR>


<% For iCounter = 1 to 5
call Response.Write(iCounter)
<BR>
Next%>
<HR>
</BODY>
</HTML>

Reply With Quote
  #2  
Old August 22nd, 2003, 04:58 PM
zimm zimm is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 30 zimm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
What I have changed is colored red

<HTML>
<HEAD><TITLE>Our First ASP Script</TITLE></HEAD>
<H1><B>Our First ASP Script</B></H1>
<BODY>

Let's Count up to 5.

<BR>
<HR>


<%
For iCounter = 1 to 5
Response.Write(iCounter & "<br>")
Next
%>
<HR>
</BODY>
</HTML>

******************************************
You don't have to "call" the response object. The browser automatically knows that you are making a call to the server.

Reply With Quote
  #3  
Old August 23rd, 2003, 06:44 AM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
zimm is correct on the next part of the loop
http://www.shocknet.org.uk/defpage.asp?pageID=28
a link for help...

the call keyword actually transfers control to a Sub procedure or Function procedure. You are not required to use the Call keyword when calling a procedure. However, if you use the Call keyword to call a procedure that requires arguments, argumentslist must be enclosed in parentheses. If you omit the Call keyword, you also must omit the parentheses around argumentslist. If you use either Call syntax to call any intrinsic or user-defined function, the function's return value is discarded.

EXAMPLE
<html>
<head>
<%
sub vbproc(num1,num2)
response.write(num1*num2)
end sub
%>
</head><body>
<p>Result: <%call vbproc(3,4)%></p>
</body></html>

Reply With Quote
  #4  
Old August 23rd, 2003, 06:51 AM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
also, your subject name is unacceptable, please use better subject lines in the future.

Reply With Quote
  #5  
Old August 23rd, 2003, 08:15 PM
Onslaught's Avatar
Onslaught Onslaught is offline
/(bb|[^b]{2})/
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2001
Location: Somewhere in the great unknown
Posts: 4,834 Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Day 23 h 30 m 30 sec
Reputation Power: 88
Send a message via ICQ to Onslaught
for more information on how to post a question please refer to the sticky thread at the top of this forum.

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Please help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway