Allan Green
New Member
Hi everyone,
I've been playing with the ABL preprocessor...a scary place indeed. I suspect from the relative lack of discussion of it online that it isn't terribly widely used. I think I've mastered supplying arguments (both numbered and named) to include files, which is great. However I've only been able to get numbered arguments to work in procedure (.p) files. (I've not been able to find anything in the documentation or online to confirm that this is expected behaviour though...)
I'll settle for numbered arguments if I have to, but named arguments are inherently self-documenting and less likely to be mislabelled as a consequence of careless future revisions.
(PS I've found the documentation of procedure arguments pretty limited by Progress standards. And I'm sure that one or two of the (Progress) pages I did find confuse arguments and parameters which is a little worrying....)
(Just to invite the usual well-meaning advice (and abuse
), I'm using OE 11.1.)
Thanks for reading and any comments you may have.
Allan Green
-------------------------
Here are my latest attempts to get this working just so you can see what I am trying to do!
I've been playing with the ABL preprocessor...a scary place indeed. I suspect from the relative lack of discussion of it online that it isn't terribly widely used. I think I've mastered supplying arguments (both numbered and named) to include files, which is great. However I've only been able to get numbered arguments to work in procedure (.p) files. (I've not been able to find anything in the documentation or online to confirm that this is expected behaviour though...)
I'll settle for numbered arguments if I have to, but named arguments are inherently self-documenting and less likely to be mislabelled as a consequence of careless future revisions.
(PS I've found the documentation of procedure arguments pretty limited by Progress standards. And I'm sure that one or two of the (Progress) pages I did find confuse arguments and parameters which is a little worrying....)
(Just to invite the usual well-meaning advice (and abuse

Thanks for reading and any comments you may have.
Allan Green
-------------------------
Here are my latest attempts to get this working just so you can see what I am trying to do!
Code:
/* Name: forum_submission_parent.p
Description: This module sets up the values of named arguments
"argument1" and "argument2" passed to
forum_submission_daughter.p
*/
&SCOPED-DEFINE cArgument "Teststring"
&SCOPED-DEFINE iArgument 123
RUN forum_submission_daughter.p {
&cArgument="Teststring"
&iArgument = 123
}.
RETURN.
----------------------
/* Name: forum_submission_daughter.p
Description: This module was written to clarifiy whether it is
possible to use named arguments within an OpenEdge
external procedure file.
*/
DEFINE VARIABLE cLocalExample AS CHARACTER FORMAT "x(12)".
DEFINE VARIABLE iLocalExample AS INTEGER FORMAT ">>>9".
cLocalExample = {&cArgument}.
iLocalExample = {&iArgument}.
DISPLAY cLocalExample
iLocalExample
WITH FRAME fNamedArgsIncFile
ROW 5 COLUMN 5
TITLE "Procedure file daughter".
RETURN.
Last edited by a moderator: