|
Scott Klement wrote:
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...
This has been discussed elsewhere.
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.