Armando_Rod2000
7th October 2002, 16:16
Hi all!!!!!!

I've some problems with a screen field.
I've a form type 2 (mult occ + princ) and i have a field (expd) type (not mult-reg) at the top (like a pointer indicator). Ok, at the choice.mark.occur: ---> after.choice: i set the variable to the actual occ value and show it at the screen. How i can blank the variable when the user press ESC key and refresh the form ? Wich event must be uses? This is my code:

choice.mark.occur:
before.choice:
---> Not use

on.choice:
---> Not use

after.choice:
expd = MY_TABLE.FIELD
display ("expd")

NPRao
7th October 2002, 20:04
Armando,

You might like to use the predefined variable -


long in.ret 4R
Integer value of key pressed on input field. Cursor keys and zoom keys cannot be detected. Valid only in on.input, after.input, and after.field sections.


check the key value of ESCAPE key and then blank the fields, and call the http://www.baanboard.com/programmers_manual_baanerp_help_functions_form_and_form_field_operations_display_many

dbinderbr
7th October 2002, 22:49
Hi !

The <ESC> code is 27.

Armando_Rod2000
7th October 2002, 23:02
that has been a salominc solutions :cool: