Help: VB3: Arrays of arrays possible? 
Author Message
 Help: VB3: Arrays of arrays possible?

I have a need using VB Pro 3.0/Win to create an array of arrays, where
all are dynamically allocated.  The first array(1-n) basically needs
pointers to other arrays.  Is this possible?  Note I don't want a two
dimentional array as the second dimention depends on the index into the
first array (e.g., 1 may have 6 entries, 2 may have 3, 3 none, etc.)
Upgrading to VB 4 is not an option at this time.

Thanks for your help.



Mon, 20 Jul 1998 03:00:00 GMT  
 Help: VB3: Arrays of arrays possible?

Quote:

> I have a need using VB Pro 3.0/Win to create an array of arrays, where
> all are dynamically allocated.  The first array(1-n) basically needs
> pointers to other arrays.  Is this possible?  Note I don't want a two
> dimentional array as the second dimention depends on the index into the
> first array (e.g., 1 may have 6 entries, 2 may have 3, 3 none, etc.)

You can do this using a "linked list."  Use a one-dimensional array of
user defined types.  This array will "contain" all of your other arrays.

email me if you need a better description.

-chris



Tue, 21 Jul 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Arrays of arrays vb3

2. Array of an array vb3

3. Array of arrays in vb3 ?

4. Arrays in Collections, Arrays in Arrays

5. Array of Arrays and 2D array

6. VB3 Array containing variable length data (HELP!)

7. REQ HELP on: Index Array vs Regular Multidimentional Array TIA

8. Indexed Arrays/Control Arrays Help

9. Is an array of forms possible?

10. Creating Arrays at runtime - Is it possible?

11. Is possible to loadpicture directly from binary array?

12. Multi Dimensional Arrays possible?

 

 
Powered by phpBB® Forum Software