Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Inserting line break command into loop

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Inserting line break command into 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 >>
or
into the html?

Any help is appreciated!

 Inserting line break command into loop - 11/6/2002 3:06:22 PM   
  lchevrette

 

Posts: 1
Score: 0
Joined: 11/6/2002
From:
Status: offline
The following is VBScript code that my administrator wrote and I need to edit it. The script is instructed to query the database and post any fields found based on the request onto the webpage. The problem is, each time it loops the data is cascaded down the webpage.

How can I insert a line of code that tells the script that after every loop to insert either a new







Choose one of the following career opportunities.


<%if NOT rs.EOF then%>


<%ColorFlag=false
do while not rs.EOF
if ColorFlag=true then
ColorFlag=false%>

<%else
ColorFlag=true%>

<%end if%>










<%rs.MoveNext
loop%>
<%else%>


<%end if%>
<%cn.Close
set cn=nothing%>
<%=rs.Fields("Description")%>
"><%=rs.Fields("JobTitle")%>
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Inserting line break command into 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