Re: in "ON KEY" block, display is not working, help?
Posted in 1997
Hi Ramki, I tried the same code in Informix 4GL 6.01 and its working fine. There is no need to press Return in the field in which you want the display to appear. However can you clarify what frm1.status in "display l_status to frm1.status " means? if it is a form field it should work and it did work. I called a function in the on key, in field condition and assigned a VALUE and returned it.This value i displayed using a display ... to ... statement.it gets displayed without any need to press return. Bye ****************************************************************************** S.Sathish CMC LTD., BANGALORE-1 INDIA email :ssathish@cmcbang.ernet.in ****************************************************************************** On Mon, 3 Nov 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. } } Thx in advance, } //Ramki. }