Results 1 to 3 of 3

Thread: Reset an array

  1. #1

    Reset an array

    How to reset an array.

    I use an array as a buffer for messages (containing Text, Time, Date, Frame etc ). Sometimes, I need to empty it. How?
    Is there a null value in WR?


  2. #2

    Re: Reset an array

    I looked for such function but i did not find it.

    For the moment you could try a "loop" to reset the array values or use the "delete" function to delete an element in the array.

    while (i <= numelem)
    array[i++] = "";


    while (i <= numelem) {
    delete array[1];

    I hope it works...


  3. #3

    Re: Reset an array

    For 1-dim. arrays, this works:

    while(ix in myarray)
    delete myarray[ix];

    Charles Reace

    web site | [url=http://www.ebookworm.us/[/url]

    [i]...Sound trumpets! Every trumpet in the host! / Sixty thousand, on these words, sound, so high the mountains sound, and the valleys resound.&lt;/i] (The Song of Roland)



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 03:59 PM.

Copyright BetaSoft Inc.