Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Looping??

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Looping??
  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 >>
 Looping?? - 5/31/2001 12:56:23 AM   
  bigtop

 

Posts: 15
Score: 0
Joined: 5/31/2001
From: USA
Status: offline
To start off, I know nothing about VBscript. I am using instructions I found on the internet, and trying to adapt them to my needs. I am writing a couple of asp's for database access from the web. I need to have a looping function from a user entered number to a user entered number. I currently have this:

do while From_Twp != To_Twp

-- Function --

From_Twp = From_Twp + 1
loop

Those of you who know vbscript probably are thinking " Of course it doesn't work" When I try to run it I get a VBscript error "Expected Statement" If you guys can tell me how to make this loop run that would be great!!

P.S. Sorry for the long post.
 
 
Post #: 1
 
 Re: Looping?? - 5/31/2001 12:57:35 AM   
  berand

 

Posts: 13
Score: 0
Joined: 5/29/2001
From: USA
Status: offline
Hi,

Dim From_Twp,To_Twp

From_Twp=1
To_Twp=10

do while From_Twp <> To_Twp
From_Twp=From_Twp+1
loop

vb script uses <> instead of !=

(in reply to bigtop)
 
 
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 >> Looping?? 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