bradkenyon
04-24-2008, 02:04 PM
i need the count of words between each separator, which is a colon separating each value, i want the count of values so i can put it in a for loop, so i can use that as an index when i plug the values into the value element of a input type="text" box
this is the code i have now, but as you see, i have it set to go from index 0 to 3, starting at 0 is cool, but i want it to automatically detect how the ending index, which is 3 in this example.
<%
dim txt,a
txt="Mr. David Miller:Mr. Brad Morse:Mr. Jack Smith:Mr. Johnny Cash:"
a=Split(txt,":")
for t = 0 to 3
%>
<input type="text" name="absentee" value="<%=a(t)%>" size="30"><br>
<%
next
%>
thanks in advanced.
this is the code i have now, but as you see, i have it set to go from index 0 to 3, starting at 0 is cool, but i want it to automatically detect how the ending index, which is 3 in this example.
<%
dim txt,a
txt="Mr. David Miller:Mr. Brad Morse:Mr. Jack Smith:Mr. Johnny Cash:"
a=Split(txt,":")
for t = 0 to 3
%>
<input type="text" name="absentee" value="<%=a(t)%>" size="30"><br>
<%
next
%>
thanks in advanced.