Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


for loop

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,39306
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> for loop
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 for loop - 10/31/2006 1:17:38 AM   
  shajimanjeri

 

Posts: 2
Score: 0
Joined: 10/31/2006
Status: offline
dfasdfs.replbq{width:100%} var LetterVals = { UIStrings : { __last : 'not used' }, StateDynamic : true, yplus_browser : false, premium_user : false, smsintl : "", SidebarSyncActionType : "read", SidebarSyncAuxActionType : "", SidebarSyncUID : "8252", SidebarSyncAuxUID : "", getString : function(id) { var result = this.UIStrings[id]; if ( result == null ) { return "Not translated: '" + id + "'"; } return result; } }

Hi all,

I have a code like this by using a for loop in asp Vbscript. My question is that how to calculate total of this this


<table>
<tr>
<td><strong>PortNumber 1 </strong></td>
</tr>

<%
dim x
for x=0 to 10
%>
<tr>
<td><% Response.Write(x) %></td>
</tr>

<%
Next
%>
</table>


with regards
shaji
 
 
Post #: 1
 
 RE: for loop - 10/31/2006 9:02:11 AM   
  Lil Turtle

 

Posts: 11
Score: 0
Joined: 8/22/2006
Status: offline
<%
Dim total
total = 0
dim x 
for x=0 to 10
 total = total + x
%>
<%
response.write(total)
%>



_____________________________

Football Fanatic - Go Seahawks!!

Lil Turtle

(in reply to shajimanjeri)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> for loop Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts