× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Pessach:

I suspect that you have data in that data structure even before you execute that line of code. If you want your data structure to be initialized to zeros/blanks/etc., you need to specify the "INZ" keyword on that data structure. In fact, it is good practice to use INZ in all D-specs unless you have a good reason not to.

Remember that a field (or data structure) is just a name that's easy for us to understand. In reality it is pointing to an area of memory which may or may not contain data useful to your program. RPG does NOT initialize that area unless you tell it to do so.

Hope that helps,
--Bruce Guetzkow



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.