×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
I didn't receive the original message.
The eval stringVariable += otherString (as David suggested) works fine in
ILE RPG as long as stringVariable is a *varying* value. (When you think
about it, it doesn't make sense to allow this operation when the receiving
end is a non-varying-length field.
I don't know if a space is allowed between + and = but I do know they must
be in that sequence. += is (to me) easier to read and less confusing
anyway.
Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"The problem with being punctual is that nobody's there to appreciate it."
-- Franklin P. Jones
d BigHunkPart s Like(BigHunkData)
C Eval BigHunkPart
= %subst(bighunkdata:gt:len)
C Eval slashremoved = +
C %replace('':BigHunkPart:2:1)
I'm not 100% sure compound assignment operations are allowed in evals
... but regardless, try using "+=" instead of "=+" (although I'm not
sure it makes a difference).
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.