Results 1 to 2 of 2

Thread: URGENT Remove empty cells from an array

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2002
    Location
    Hampton Beach
    Posts
    513

    Talking 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)">

  2. #2
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    Re: URGENT Remove empty cells from an array

    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
    %>
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width