Dynamic 2D array?
- From: "Ingolf" <Dont_Spam_ingolf@xxxxxxxxxx>
- Date: Sat, 11 Mar 2006 16:22:43 +0100
Hi
Is it possible to declare a 2D array, which has different lengths in the 2nd
dimension?
This is my array
MyArray : array[1.9,1..9] of byte
This gives me a 9x9 array. What i want is something like this:
MyArray dimension1 should have 5 values in the second dimension
MyArray dimension2 should have 7 values in the second dimension
MyArray dimension3 should have 4 values in the second dimension
etc
Which means that if i want to acces MyArray, dimension1, there is only 5
values in the 2nd dimension.
MyArray[1,1..5]
MyArray[2,1..7]
MyArray[3,1..4]
So accesing MyArray[1,6] would give an rangecheck error, but MyArray[2,7]
will not.
Is that possible?
.
- Follow-Ups:
- Re: Dynamic 2D array?
- From: Uffe Kousgaard
- Re: Dynamic 2D array?
- From: Rob Kennedy
- Re: Dynamic 2D array?
- Prev by Date: Re: how to install to multiple clients over a network?
- Next by Date: Re: using c++ dll in delphi app
- Previous by thread: Re: Delphi & MS Word Automation
- Next by thread: Re: Dynamic 2D array?
- Index(es):
Relevant Pages
|