|
>...when the next element of the array is not blank >I want to add the data onto #TEXT instead of over >writing it. I want to end result(#TEXT) to look >something like this: 1111111111, 2222222222, >3333333333, 4444444444, 5555555555 6666666666, >7777777777, 8888888888, 9999999999 Eval #text = 'this' + 'that' will result in #text having 8 characters of stuff followed by blanks to the length of #text. Let's sat #text is 10 long: 'thisthat ' Note that #text has 10 characters in it; the last two are blanks. Eval #text = #text + 'this' will result in #text having 10 characters of blanks followed by ... wait a minute, #text is only 10 long. It can't have anything after it. This is equivalent to #text cat 'this' #text. You can't add to the end if you're past the end. Eval #text = %trim(#text) + 'this' will result in #text having 4 characters of stuff followed by 6 characters of blanks. That's because %trim() removes the blanks. This is equivalent to #text cat 'this':0 #text. Hope that helped. --buck
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.