|
Bob Cozzi wrote: > Hans, > > I think for keyword expressions, I'd simply like to say things like: > > D fieldx S 80A > D myArray S 1A DIM(%SIZE(fieldx)+1) Bob: Have you tried coding something like this: ---------------------------------------------------------- D fieldx s 80a D fieldx1 s +1 like(fieldx) D myarray s 1a dim(%size(fieldx1)) /free dsply myarray(81); *inlr = *on; /end-free ---------------------------------------------------------- In this program, "myarray" gets declared as 1A DIM(81). > I would settle for just that kind of support vs. the following: > > D FieldY S 7P 0 INZ(3741) > D Invoice S 9P 0 INZ(FieldY + 1) > > I don't really care about example two (above). I just want static values > in the expression support. Field variables would be a good "next time" > function but not important for round one. When we're talking about expressions as keyword parameters, we're *only* talking about constant expressions, and not variable expressions. Variable expressions is an even bigger problem. Cheers! Hans
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.