Re: Help with SCREEN RECORD & WORDWRAP
Posted in 1998
rhenders@mednet.med.miami.edu wrote: > Running version 4.10.UD1 of 4GL under Sun OS 4.1.3 Nice modern technology... Beware the turn of the millenium! > When I have a field defined in a screen form (.per) with the > WORDWRAP attribute for a 2+ line display field with the same > field tag and in the INSTRUCTIONS section define a SCREEN RECORD, > I get the following error message: You cannot have a multi-line, word-wrapped text field as part of a screen array -- the form language has no way to distinguish between the repeated fields for the WORDWRAP and the repeated fields for the array. This is an annoying defect. > -2029 - Screen record array name has component sizes which either > differ from the specified dimensions of the array or differ among > themselves. > > If I reduce this display field to one line, it compiles fine. The > variable length exactly matches the number of spaces allocated in > the display field. I tried used [##,##] within SCREEN RECORD but > it gives me a syntax error. You use that notation in the attributes section, not in the screen record. > I can't remember if this is a known bug because checking past 4GL > programs that utilized SCREEN RECORD, those with multi-line text > fields have different field tags and WORDWRAP is never used. > > E-mail me if anyone has a solution and if it is a bug, what > version corrects this? The 'solution' is the usual one -- don't do what doesn't work. Its a feature/bug, but it isn't fixed. D4GL (a little more recent technology) provides horizontally scrolling fields which can be helpful for this... -- Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net) Guardian of DBD::Informix v0.60 -- see http://www.perl.com/CPAN #include <disclaimer.h>