find open space on an array

Results 1 to 2 of 2

Thread: find open space on an array

  1. #1
    Corin Guest

    Default find open space on an array

    I have an array and want to put a value in the next open space. My loop need to continue until their isn&#039t a value in a array space then input my value. Something like....<BR><BR>DO UNTIL array(i) = " "<BR>i=i+1<BR>LOOP<BR><BR>I tried this and it didn&#039t work, it just keep inputing my value in the array(0)<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: find open space on an array

    Is that because a(0) = " "?<BR><BR>Rather than searching for an empty spot in your array, why not have a variable that stored the open spot... that way you don&#039t need to search for the spot each time you need to insert a new element?

Posting Permissions

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