In a program i'm currently working on i've created a user defined type to contain some data that i'll later use to populate my form. i'm using an array of that user defined type and as i pull more data from a offsite server i'm resizing the array.
So in order to make my program easier to digest i've starting splitting it into subroutines, but when my program is initialized i dont have a good way to detect if the array has been initialized yet, so i cant just call a size function to see if the array is empty.
So is there a good way to initialize an empty user type? or detect a null user type? Right now i'm hard-coding it in and i'd like a more elegant solution.