System Reference Summary : Events : ChildKeyPress Event
 
Share this page          
ChildKeyPress Event
The ChildKeyPress event is triggered when an EntryField has the input focus and the user presses an ANSI key. Information about the key is stored in a KeyPressInfo object, and the KeyPress Info object is delivered to the 4GL program as the MessageObject. The 4GL event code may change the keystroke or cancel it entirely by modifying the KeyPressInfo object. To discard a keystroke, set KeyPressInfo.ANSICode to zero.
The ChildKeyPress event is generated only when the user presses an ANSI key. Thus, the Delete key, for example, does not cause a ChildKeyPress event.
on ChildKeyPress [compositefieldname]
compositefieldname is optional if you specify this event in a field script for a composite field.