How to clear an array?

  1. 4 years ago

    Jakob K

    16 Feb 2015 Pre-Release Testers, Xojo Pro Sweden

    -image-
    How do I empty the array from all inserted data?
    So I can put new data in the array but always to the empty array?

    Redim arrWords(-1)
  2. Edited 4 years ago
    Redim arrWords(-1)
  3. 7 months ago

    Richard D

    30 Jan 2019 Pre-Release Testers, Xojo Pro Europe (UK, London)

    how to check if the array is empty??

  4. Kem T

    30 Jan 2019 Pre-Release Testers, Xojo Pro, XDC Speakers Connecticut

    Its Ubound will be -1.

  5. Derek D

    30 Jan 2019 Pre-Release Testers Newnan, GA. USA

    Does this reduce the size of the array by 1 though? I believe that was an issue I had with it.

  6. Tim H

    30 Jan 2019 Pre-Release Testers Portland, OR USA

    @DerekDiBenedetto Does this reduce the size of the array by 1 though? I believe that was an issue I had with it.

    No. It reduces the size to zero.

  7. Paul L

    30 Jan 2019 Xojo Inc http://docs.xojo.com

    For reference:

    https://docs.xojo.com/Arrays

  8. Richard D

    30 Jan 2019 Pre-Release Testers, Xojo Pro Europe (UK, London)

    @Kem T Its Ubound will be -1.

    does this applied to multidimensional array??

  9. Tim H

    30 Jan 2019 Pre-Release Testers Portland, OR USA

    @Richard D does this applied to multidimensional array??

    Yes.

or Sign Up to reply!