URGENT Remove empty cells from an array
Is there a way to remove the empty cells from an array...
when i display my array like this:
sNums = split(sNums,",")
then each text box contains the array indexes like this:
<input name=text1 id=text1 value="sNums(0)">
<input name=text2 id=text2 value="sNums(1)">
Re: URGENT Remove empty cells from an array
Quote:
Originally posted by JohnSmith
Is there a way to remove the empty cells from an array...
when i display my array like this:
sNums = split(sNums,",")
then each text box contains the array indexes like this:
<input name=text1 id=text1 value="sNums(0)">
<input name=text2 id=text2 value="sNums(1)">
Try something like this
<%
if isnull(snums(0))=false then
%>
<input name=text1 id=text1 value="sNums(0)">
<%
end if
%>