Excellent Robert, I tried all sorts of things and learnt abunch of stuff on the way as usual. Martin Robert Purves wrote: > >It still doesn't respond to the escape key (27)? > > The clear key and the esc key are both chr$(27). > > The reason that the escape key cannot be picked up by your ON EDIT routine > is that it gets mapped to an _efClear event, which you can pick up in your > ON DIALOG routine along with many other edit-field related events. > > case _efReturn ' return key in _NoCR type efs > case _efTab ' tab key pressed > case _efShiftTab ' shift tab key pressed > case _efClick > case _efClear ' clear or escape key pressed > case _efLeftArrow ' left arrow key pressed > case _efRightArrow > case _efUpArrow > case _efDownArrow > > Robert P. > > -- > To unsubscribe, send ANY message to <futurebasic-unsubscribe@...> -- ''~`` ( o o ) +--------.oooO--(_)--Oooo.--------+ | Martin Fitzgibbons | | RUSH SOFTWARE | | rush@... | | 149 Stafford ST | | Gerroa, NSW AUSTRALIA 2534 | | ph/fax 02 42342107 | | http://www.rushsoftware.com.au | +---------------------------------+