Re: simple way to clean out array



On Fri, 30 Sep 2005 09:23:55 GMT, "Will" <WillG@xxxxxxxxxxx> wrote:
>Is there an easy way to remove all data from a multidimentional array
>besides looping through all the elements and setting them individually to
>null?

Why not use Erase (erase arrayname), depends upon the array type as to
what value the array is cleared to.
>
>I have an array which under certain conditions needs to be "cleaned out" and
>refilled.
>
If you're refilling the entire array why do you need to clear it first ?
--
Alfie
<http://www.delphia.co.uk/>
Law and Order do not always mean Peace and Justice

.



Relevant Pages

  • Re: Fastest way to reset to zero an array
    ... Erase ArrayName ... | This is a relatively simple question but I can't find it on google ... What is the fastest way to reset an array to zero (or the value ...
    (microsoft.public.excel.programming)
  • Re: Free old variables
    ... Erase ArrayName ... | I have a macro that I run am running - here is the problem. ... When I rerun the array keeps its old ... | the loop at the beginning of the macro ...
    (microsoft.public.excel.misc)
  • Re: Problem calling a .COM component in :NET with C#
    ... The problem might not be Array type but the argument type. ... as you see the API function accepts a reference ... void SomeFunction(ref int x, int y) { ...
    (microsoft.public.dotnet.general)
  • Re: Surprise in array concatenation
    ... > I didn't say general array indexing is not useful; ... > strings), for example, Ada forces one to change from native array ... popular with scripting languages and a few other new languages. ... up the name of an array type in a C or C++ symbol table. ...
    (comp.lang.ada)
  • Re: Are they equivalent ?
    ... >> Where v is a pointer to an array of characters,defined as ... pointer to char".] ... and if 'v' is truly an array type (as ...
    (comp.lang.c)