Nullifying an Array

Discussion in 'Questions (Windows Mobile)' started by mjcoon, Jun 20, 2008.

  1. mjcoon

    mjcoon Well-Known Member Licensed User

    The help for keyword "Array" says: "However the size of the array can be set to 0 as the Array keyword will reinitialize the array."

    I think that this really means that the array can be declared to have a size of zero since the size can be altered dynamically, for instance and not excusively by use of the Array keyword. There is nothing special about zero size in this context.

    But I would like to set the size dynamically to zero and I cannot find a way of doing this. It seems I am not allowed to use "Array()" to do this.

    Regards, Mike.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can always redim the array and set its size to 0 (not just in Globals sub):
    Code:
    Dim SomeArray(0)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice