I usually code procedure parameters with the Const keyword. It has its
limitations, but you can receive expressions instead of referenced
parameters, making the numerical type less relevant.
I imagine a procedure that could accept strings and numbers in the same
parameter would be a kind of pain to properly validate.
--
Saludos
Antonio Salazar
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Monday, January 11, 2010 12:20 PM
To: RPG programming on the IBM i / System i
Subject: Re: RPGV?
Hi Dennis,
[...]
The same is true of the %date(), %char(), %int(), etc, etc BIFs... they
all can take their input from just about any data type. Something we
can't really do with subprocedures.
This mailing list archive is Copyright 1997-2026 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.