Re: Tab in WORDWRAP fields
Posted in 2005
If you would like to try it, the following test module and form demonstrates the problem: ________________ __| tab_insert.4gl |___________________________________ MAIN DEFINE l_contents CHAR(100) OPTIONS MESSAGE LINE 6, PROMPT LINE 8 DISPLAY "Press Ctrl-A, Tab and Esc" AT 1, 1 OPEN FORM f_main FROM "tab_insert" DISPLAY FORM f_main INPUT l_contents FROM screen_record.* IF l_contents MATCHES "*[^ -~]*" THEN MESSAGE "Bug exists" ELSE MESSAGE "This 4GL version is OK" END IF PROMPT "Press any key to exit " FOR CHAR l_contents END MAIN ________________ __| tab_insert.per |___________________________________ DATABASE FORMONLY SCREEN { [a ] [a ] } ATTRIBUTES a = FORMONLY.a, WORDWRAP; INSTRUCTIONS SCREEN RECORD screen_record (a) _______________________________________________________ I would be interested to know whether this is fixed in 7.31 or 7.32. Depending on the result, I will upgrade or request a patch. -- Regards, Doug Lawry www.douglawry.webhop.org "Doug Lawry" <lawry@nildram.co.uk> wrote in message news:d0kd94$ilg$1@nntp0.reith.bbc.co.uk... > HP-UX B.11.11 / INFORMIX-4GL 7.30.HC6 > > We have found a 4GL bug in which actual tab characters can be inserted > into a screen field and subsequently into the database. It only happens > under exactly the following conditions: > > 1) The field is multi-line (defined as WORDWRAP on the form) > 2) Character insertion mode is active (Ctrl-A key) > 3) Tab is pressed > > There are 88 forms affected, so I really want a generic fix so I don't > have to put in a work-around in all the 4GL modules. Any ideas? > > Also posted to: classics@iiug.org > > -- > Regards, > Doug Lawry > www.douglawry.webhop.org