Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Simple problem with do loop and variables

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Simple problem with do loop and variables
  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 >>
 Simple problem with do loop and variables - 1/25/2005 7:34:40 AM   
  apoc40

 

Posts: 1
Score: 0
Joined: 1/25/2005
From:
Status: offline
As far as I can tell this is syntatically correct, but it dosen't give me any results unless I replace the variable i, which is declared slightly earlier as num+10 , with an actual number, such as 20. I'd apprecate any help, thanks.


<%
DO WHILE NUM < i AND NOT rs.eof
subj=rs("Subj")
subj=myURLDecode(Subj)
%>
<b>
<%=rs("category")%>:<%=Subj%>
</b>
<%
Info=rs("Info")
Info=myURLDecode(Info)
%>
<%=Info%>
<%
rs.MoveNext
NUM = NUM+1
Loop
%>
 
 
Post #: 1
 
 Re: Simple problem with do loop and variables - 3/2/2005 10:35:12 PM   
  VBS

 

Posts: 110
Score: 0
Joined: 3/2/2005
From: Lebanon
Status: offline
Dear apoc40,
I don't think i understanded u correctly but i must tell u to replace any rs("Filed_Name") with rs.Fields("Filed_Name") cause u will discover many problems later in ur project and i recommend u not to use = cause response.write is a lot better

And i personaly use this

Best Regards

Firas S Assaad

(in reply to apoc40)
 
 
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 >> Simple problem with do loop and variables 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