Re: Dim MyArray vs. Dim MyArray()

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Tom Ogilvy (twogilvy_at_msn.com)
Date: 11/11/04


Date: Thu, 11 Nov 2004 09:23:32 -0500


> So however nimble the “underlying structure of the storage” analysis may
> be, from the errors thrown above it seems abundantly clear that the two
> constructs are not technically identical and that MyArray1() and
> MyArray2() are true Variant() arrays and not Variant variables
> containing arrays (if they were the latter, then, as demonstrated above,
> there would be no such errors).
>
> Alan Beban

The only thing I see your test illustrates is your declaration causes the
parser to apply different rules in interpreting how it tries to interpret
and implement your commands. It also seems to reinforce my basic point
that the use of

Dim myArray()
myArray() = somearray

is a waste of time and could be counterproductive.

As you said:

> We seem to keep going around the barn on this.

-- 
Regards,
Tom Ogilvy


Relevant Pages

  • Re: Operations on derived type arrays
    ... "I get the impression that Richard is talking a bit past you." ... arrays of structures versus structure of arrays. ... access all the elements of myArray and USED ... layout affects performance. ...
    (comp.lang.fortran)
  • Can you dynamically resize an array?
    ... What do you do when you're dealing with arrays whose size you ... myarray: arrayof integer; ... myinteger, errx: integer; ... clear on how to automatically resize those either. ...
    (comp.lang.pascal.delphi.misc)
  • Re: debugging code (was Re: semicolon adding nops?)
    ... should have about how to actually look at the data from arrays? ... see is isa, class, superclass, and all that stuff. ... can say, while stopped at a breakpoint, in the debugging console window: ... po [myArray objectAtIndex:3] ...
    (comp.sys.mac.programmer.help)
  • Re: Altering Array Sizes within Functions
    ... > Im having trouble with arrays ... > The function modifies the size and elements of myArray. ...
    (comp.lang.cpp)