×
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.
Would give you the same result. You don't need the Inz keyword when
you're setting a single variable to its default state.
When a procedure is called, it initializes all local variables (unless
Static is specified, though I personally don't use that much at all, if
ever).
Kurt Anderson
Application Developer
Highsmith Inc
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jerry Adams
Sent: Tuesday, August 21, 2007 8:52 AM
To: RPG Midrange
Subject: Procedure Initialization
Naturally, in the D-spec of mainline, if I use the INZ( ) keyword, the
field is initialized to that value when the program starts.
Apparently I never thought I needed INZ( ) in a procedure's D-spec, but
this morning I was writing one where it fits. If I code:
D Field S 9p 2 INZ(*Zeros)
does "Field" get set to zeros each time the procedure is invoked?
Of course asking the question now is just a sign of laziness as I would
find out when I test the program. Sometimes, though, a preemptive
strike is productive.
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.