R RBCC Jan 23, 2004 #1 Does anyone know how to dynamically allocate array of structures? Or where Ican find info on this on the web? John
Does anyone know how to dynamically allocate array of structures? Or where Ican find info on this on the web? John
T Tom Shelton Jan 23, 2004 #2 Does anyone know how to dynamically allocate array of structures? Or where Ican find info on this on the web? John Click to expand... Check out ReDim...
Does anyone know how to dynamically allocate array of structures? Or where Ican find info on this on the web? John Click to expand... Check out ReDim...
T Tom Shelton Jan 23, 2004 #3 Does anyone know how to dynamically allocate array of structures? Or where Ican find info on this on the web? John Click to expand... Oh, or better yet - if possible - change your structures to classes and use an ArrayList...
Does anyone know how to dynamically allocate array of structures? Or where Ican find info on this on the web? John Click to expand... Oh, or better yet - if possible - change your structures to classes and use an ArrayList...
H Herfried K. Wagner [MVP] Jan 23, 2004 #4 * RBCC said: Does anyone know how to dynamically allocate array of structures? Or where Ican find info on this on the web? John Click to expand... 'ReDim Preserve'...
* RBCC said: Does anyone know how to dynamically allocate array of structures? Or where Ican find info on this on the web? John Click to expand... 'ReDim Preserve'...
J Jose Caliente Jan 24, 2004 #5 why classes? when a struct will do jc Tom Shelton said: Oh, or better yet - if possible - change your structures to classes and use an ArrayList... Click to expand...
why classes? when a struct will do jc Tom Shelton said: Oh, or better yet - if possible - change your structures to classes and use an ArrayList... Click to expand...
J Jay B. Harlow [MVP - Outlook] Jan 24, 2004 #6 Jose, Because structs will be boxed when you put them into an ArrayList, making it slightly more difficult to update them. Classes will not be boxed when they are put into the ArrayList as they are already reference types, so they are easier to work within an ArrayList. Remember that an ArrayList is designed to hold Objects (reference types). Hope this helps Jay
Jose, Because structs will be boxed when you put them into an ArrayList, making it slightly more difficult to update them. Classes will not be boxed when they are put into the ArrayList as they are already reference types, so they are easier to work within an ArrayList. Remember that an ArrayList is designed to hold Objects (reference types). Hope this helps Jay