×
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.
Subsequent to the recent discussions on the best way to redefine record fields in an array (or some other redefinition) I decided to resurrect an old COMMON requirement in a slightly different form.
The biggest problem with one of the approaches discussed was that it required that you manually calculate the start position of the first field in the array. RPG IV did away with the need to use the old From/To definitions and avoid the problems that subsequent changes in the field definitions can cause. So it saddens me to see a solution that effectively forces you to go back to the bad old days.
Enter the %POS() Built-In Function. The idea is that this returns the start position of the named field as an integer and could be used to replace a hard-coded value.
I'm sure it can also find other uses but this is good enough for me.
I won't include an example here as there is one in the RFE. Please check out the RFE and if you think it is a good idea please vote for it. The URL is:
http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=121317 <
http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=121317>
www.partner400.com
www.SystemiDeveloper.com
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.