Dec 27, 2002 #1 skiflyer Programmer Sep 24, 2002 2,213 US If I have a static array of 50 elements, is there anyway to see how many of the elements I've used without keeping a counter myself? Thanks.
If I have a static array of 50 elements, is there anyway to see how many of the elements I've used without keeping a counter myself? Thanks.
Dec 27, 2002 #2 Darrylles Programmer Feb 7, 2002 1,758 GB Hi, If you're filling the elements sequentially, then the only way is to have a function to loop through - returning the next empty element. Easier to keep a count - methinks. Regards, Darrylle "Never argue with an idiot, he'll bring you down to his level - then beat you with experience." darrylles@totalise.co.uk Upvote 0 Downvote
Hi, If you're filling the elements sequentially, then the only way is to have a function to loop through - returning the next empty element. Easier to keep a count - methinks. Regards, Darrylle "Never argue with an idiot, he'll bring you down to his level - then beat you with experience." darrylles@totalise.co.uk