Re: 4gl field wrapping
Posted in 2004
monkeys paw wrote: > I have a 512 char field on an input screen. It looks like > > Summary [smry ] > [smry ] > [smry ] > [smry ] > [smry ] > > With exactly 512 characters. When i use > > attributes > > smry = bills.summary, wordwrap compress; > > > The words drop down and leave alot of dead space, so 512 chars > is not possible. How can i allow words to wrap without any dead > space so that the field length will be 512 chars and that is > how many a user can enter? Check out alternative spellings for compress (noncompress, and omitted). They probably aren't what you're after, though. Alternatively, use multiple segments: smr1 = bills.summary[1,64]; smr2 = bills.summary[65,128]; ... OTOH, I would not be happy using that. I'd rather slightly oversize the field on the screen, and worry about truncation later. -- Jonathan Leffler #include <disclaimer.h> Email: jleffler@earthlink.net, jleffler@us.ibm.com Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/