|
I never worry about initializing the occurrences. Since I have to track how many I've loaded anyway, I just use that value to avoid referring to an uninitialized occurrence. Hope that helps. Donald R. Fisher, III Project Manager Roomstore Furniture Company (804) 784-7600 extension 2124 DFisher@xxxxxxxxxxxxx <clip> I'm coding my first dynamic array into an rpg application (thanks to the example code provided in an email to this list by Scott Klement). From reading the IBM help, it appears that "The newly allocated storage is uninitialized." So, I'm initializing the new elements that I'm adding to the array. Is this standard practice? Do I need to do this if I use the keyword INZ on the array definition? Is there any way I can automate the initialization through a keyword instead of using the FOR loop in the subroutine below? <clip>
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.