Re: Trying to capture RETURN
Posted in 2000
En Dan Bourgeois va escriure el dia 18 Jul 2000, a les 16:05: > > I'm working on a 4gl input statement which needs to be able to > capture a RETURN (CONTROL-M) keystroke before it leaves the field. > > The client is version 9, server is version 5. > > The Manual supplement for version 4.1 claims that an ON KEY (CONTROL-M) > statement will prevent the user from using RETURN to leave the field, > but this seems not to be the case with version 9. The AFTER FIELD > clause seems to be checked before any of the ON KEY clauses, and fires > before the ON KEY clause gets checked. > > > As an alternative, I was thinking of writing a generic input routine for > the field, but I need a way of positioning the cursor either in a field > or at a given position. Are there any existing functions that have this > capability? AFTER FIELD XXXXXXX if fgl_laskey()=fgl_keyval("return") then _your_control_code_ end if control+key_[A,D,H,I,J,L,R,M, or X] won't might be captured/referenced. --------------------------------------- Isidre PONS ROCA BASE - Gesti' d'Ingressos Locals (Diputacio de Tarragona) Servei de Sistemes d'Informacio Av President Lluis Companys 12-C 43005 - Tarragona SPAIN Tel # +34 977 236731 Fax # +34 977 227302 http://www.altanet.org ipons@dtgna.altanet.org ---------------------------------------