Re: How to pass a 2-D array into a function?
- From: Gman <nah>
- Date: Mon, 14 Nov 2005 22:21:34 -0600
Ain't it?! :-)
I keep an arsenal of functions for adding items to an array, returning an index in an array etc. to save me making myself dizzy by having to loop through arrays all the time.
As I understand it (and I may be guilty of spouting misinformation again here) Delphi has native methods to handle things like the above or allowing the easy deletion of an element in the middle of an array without having to load everything into a new array. VB.NET doesn't appear to have improved on arrays at all (other than eliminating 1 based arrays and allowing for one line declaration like Dim X() as long = (1,2,3,4) ... or something along those lines. While I guess using collections is feasible in some circumstances it's staggering that VB.NET still seems to fall short on something so fundamental. Oh... and there's also ArrayLists in .NET -- something I haven't looked at so maybe I should get off my high horse.
Michael C wrote:
"Gman" <nah> wrote in message news:%239xRhgZ6FHA.3232@xxxxxxxxxxxxxxxxxxxxxxx
If it's of use to you I've pasted a function that I've used on occasion that returns an array's dimension.
Don't ya just love vb when a function like that is required just to get the dimensions of an array :-)
Michael
.
- Follow-Ups:
- Re: How to pass a 2-D array into a function?
- From: Michael C
- Re: How to pass a 2-D array into a function?
- References:
- Re: How to pass a 2-D array into a function?
- From: Gman
- Re: How to pass a 2-D array into a function?
- From: Michael C
- Re: How to pass a 2-D array into a function?
- From: Dmitriy Antonov
- Re: How to pass a 2-D array into a function?
- From: Michael C
- Re: How to pass a 2-D array into a function?
- Prev by Date: Re: How to pass a 2-D array into a function?
- Next by Date: Re: MSForms in VB6.0 Project - Cannot Quit
- Previous by thread: Re: How to pass a 2-D array into a function?
- Next by thread: Re: How to pass a 2-D array into a function?
- Index(es):
Relevant Pages
|