(OpenInsight)
At 05 JAN 2000 04:30:02PM Marc Radley wrote:
We have placed code to copying @ID and @RECORD into MISC properties before saving the record
Create a Menu say Repeat Previous and give it keystroke
Add similar code to below
DECLARE FUNCTION SEND_EVENT
OBJ=GET_PROPERTY('SYSTEM','FOCUS')
POS=GET_PROPERTY(OBJ,'POS')
IF POS ] 0 THEN
LAST_RECORD=.BUTTON_CLOSE-]MISCCONV=GET_PROPERTY(OBJ,'CONV')TYPE=GET_PROPERTY(OBJ,'TYPE')IF TYPE=EDITTABLE' THENC=GET_PROPERTY(OBJ,'SELPOS')COL=CROW=CCONV=CONVPOS=POSVALUE=LAST_RECORDEND ELSEVALUE=LAST_RECORDENDVALUE=OCONV(VALUE,CONV)S=SET_PROPERTY(OBJ,'TEXT',VALUE)END ELSEID=.DBEDITLINE_ID-]MISCIF ID # '' THEN.DBEDITLINE_ID-]TEXT=IDS=SEND_EVENT(@WINDOW,'READ')ENDEND