×
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.
On 14/05/2008, at 6:40 AM, Doug Palme wrote:
Is anyone still using the old indicator style of INKC, INKA, etc.?
I'm sure some are still doing so but they shouldn't. The primary
reason is they are not self documenting. Sure, everyone (who knows
old RPG) knows that *INKA = F1 and *INKC = F3 but what does *INKP
mean (quickly now, without counting on your fingers)?
Is there any reason why this should even be used today?
No. They can be replaced with the more mnemonic 01 to 24 indicators,
or better use named indicators.
I know some are advocating using no indicators at all in a
program....but
is that not one of the strengths of RPG?
Indicators are not a STRENGTH of RPG. They are merely a feature. At
their heart they are just boolean flags and as a programmer I once
knew said:
Flags belong on flag-poles, not in programs.
Named indicators are better than numeric ones if only for their
documentation advantages. Numeric indicators have little purpose in
modern RPG IV. Even when communicating with display files the only
remaining use for an indicator is to control DSPATR(PC) which for
some reason cannot be specified using a program-to-system field to
control display attributes. With DSPATR(&PTSFLD) and I/O BIFs there
are few instances where an indicator (of any variety) is needed.
Regards,
Simon Coulter.
--------------------------------------------------------------------
FlyByNight Software OS/400, i5/OS Technical Specialists
http://www.flybynight.com.au/
Phone: +61 2 6657 8251 Mobile: +61 0411 091 400 /"\
Fax: +61 2 6657 8251 \ /
X
ASCII Ribbon campaign against HTML E-Mail / \
--------------------------------------------------------------------
As an Amazon Associate we earn from qualifying purchases.