kredd
09-01-2005, 11:17 AM
i'm creating an array that holds athletic team information.
here is my code for displaying the staff:
<b>Student Mngrs:</b>
<% for i = 0 to UBound(repPlayers,2) %>
<% if repPlayers(11,i) = "Student Mngr." Then %>
<a href="team.asp#<%= repPlayers(1,i) %>"><%= repPlayers(2,i) %></a>,
<% End If %>
<% Next %>
what i get is:
Student Mngrs: Billy Bob, Jane Bob,
how do i keep the last "," from showing up? i know how to do this if i was spitting out the whole array, but i'm stumped trying it with only part of the array.
thanks!
kelly
here is my code for displaying the staff:
<b>Student Mngrs:</b>
<% for i = 0 to UBound(repPlayers,2) %>
<% if repPlayers(11,i) = "Student Mngr." Then %>
<a href="team.asp#<%= repPlayers(1,i) %>"><%= repPlayers(2,i) %></a>,
<% End If %>
<% Next %>
what i get is:
Student Mngrs: Billy Bob, Jane Bob,
how do i keep the last "," from showing up? i know how to do this if i was spitting out the whole array, but i'm stumped trying it with only part of the array.
thanks!
kelly