|
On Fri, 29 Dec 2000 D.BALE@handleman.com wrote: > Given the examples in the survey, couldn't we just as well do this?: > > /free > str = str + 'text'; // append 'text' to str > date = date + %days(7); // add 7 days to date > num = num - 17; // decrement num by 17 > num = num * 2; // multiply num by 2 > array(findStart(array:start)+offset) = > array(findStart(array:start)+offset) + 1; > /end-free > > Er, doesn't "eval str = str + 'text'" result in field str being unchanged? > Presuming that the += operates the same way, it will be fairly useless for > concatenating text to a string. Unless they'll make it *act* like "eval str = > %TRIMR(str) + 'text'". > What if str is a "varying" field? +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.