Re: append to a string
Posted in 2000
On Tue, 19 Sep 2000, steveFarris wrote: >What's the easiest way to append to a string in 4gl?? The only thing i >have found usable so far is something like: > >define x,y char(50) >let x = "first" >let y = x clipped," second" > >but i would rather do something like: > >define x char(50) >let x = "first" >let x = x clipped, " second" This should work. If it doesn't, there's a bug somewhere. Which version of I4GL are you using, on which platform? On Solaris 7 with I4GL-RDS 7.30.UC1, the following program produces "first second" as desired: MAIN DEFINE x CHAR(50) LET x = "first" LET x = x CLIPPED, " second" DISPLAY x END MAIN -- Yours, Jonathan Leffler (Jonathan.Leffler@Informix.com) #include <disclaimer.h> Guardian of DBD::Informix v1.00.PC1 -- http://www.perl.com/CPAN "I don't suffer from insanity; I enjoy every minute of it!"