Re: in "ON KEY" block, display is not working, help?
Posted in 1997
Ramki Natesan wrote: > > Hi All, > > "DISPLAY xxx TO yyy " statement is not working while the control is > in > "ON KEY" block. The following is the code. Could some one help. > > INPUT > l_date, > l_status > > FROM > frm1.l_date, > frm1.status > > ON KEY (CONTROL-B) > IF INFIELD(status) THEN > CALL display_status() RETURNING l_status > DISPLAY "The val is: ",l_status sleep 2 <--- fine at here > DISPLAY l_status TO frm1.status <--- not displaying, why? > but displays when I > leave > the field and go to > next. > END IF > ....... > ...... > END INPUT > > I am using INFORMIX-4GL Version 6.00.UE1(SunOS), Online 7.x database. Just remember that STATUS is a reserved word, i.e. a variable in 4GL. This could be confusing the issue. Cheers, -- Mark. +----------------------------------------------------------+-----------+ |Mark D. Stock - Informix SA http://www.informix.com |//////// /| |mailto:mdstock@informix.com FAQ http://www.iiug.org |///// / //| | +-----------------------------------+//// / ///| | Tel: +27 11 807 0313 |If it's slow, the users complain. |/// / ////| | Fax: +27 11 807 2594 |If it's fast, the users keep quiet.|// / /////| |Cell: +27 83 250 2325 |Therefore, "No news: travels fast"!|/ ////////| +----------------------+-----------------------------------+-----------+