append to a string
Posted in 2000
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
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" thanks -- original guitar music at http://www.mindspring.com/~nlymbo
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 works, or IMHO it should -- Paul Watson # WF Software Ltd # You are only young once Tel: +44 1436 674729 # but you can be immature Fax: +44 1436 678693 # for ever www.wfsoftware.com #
Thanks all, both examples do work...an oversight on my part. Paul Watson wrote: > 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 works, or IMHO it should > > -- > Paul Watson # > WF Software Ltd # You are only young once > Tel: +44 1436 674729 # but you can be immature > Fax: +44 1436 678693 # for ever > www.wfsoftware.com # -- original guitar music at http://www.mindspring.com/~nlymbo