|
Scott, Why don't you use %Size()? Then it should work in all cases. -mark Original Message: ----------------- From: Scott Klement rpg400-l@xxxxxxxxxxxxxxxx Date: Tue, 22 Jun 2004 11:24:28 -0500 (CDT) To: rpg400-l@xxxxxxxxxxxx Subject: Re: Half-Adjust with /free Hi Michael, > Hmmm...doesn't seem to work...gives me a compile error. Odd though...it > knows the %len and the %decpos of variable a at compile time. %len() is an actual function that gets run at runtime. I believe that the reason for this is that you can put variable-length data in it. For example, %len(%trimr(foo))... this can't be done at compile time because the length of a trimmed string depends on it's contents, which obviously can change at runtime. But, by assigning %len() to a named constant, that forces it to be a constant number that's known at compile time. that's why my example works... -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ .
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.