KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Note: Powerful Uses of the On Keystroke Form Event
PRODUCT: 4D | VERSION: 6.0 | PLATFORM: Mac & Win
Published On: June 1, 1997

4D V6 introduces new ways of capturing and responding to actions that the user performs while interacting with a 4th Dimension database. User actions are captured by V6 Form Events.

This technical note examines the On Keystroke form event, which enables the programmer to react to a user keystroke while in an enterable object. This functionality was available in 4D Version 3 with the use of On Event Call and a LOT of work. With On Keystroke, it is easy to react to the users as they type. As you will see in this technical note, the coding can be done with little effort.

This technical note covers:
• How 4D deals with enterable objects and user actions.
• Issues of maintaining the value of an enterable object.
• The steps to implement the code.

Accompanying this technical note is an example database that provides interactive examples illustrating possible uses of On Keystroke form events. The example also provides code ready for use in your applications.
4D V6 introduces new ways of capturing and responding to actions that the user performs while interacting with a 4th Dimension database. User actions are captured by V6 Form Events.

This technical note examines the On Keystroke form event, which enables the programmer to react to a user keystroke while in an enterable object. This functionality was available in 4D Version 3 with the use of On Event Call and a LOT of work. With On Keystroke, it is easy to react to the users as they type. As you will see in this technical note, the coding can be done with little effort.

This technical note covers:
• How 4D deals with enterable objects and user actions.
• Issues of maintaining the value of an enterable object.
• The steps to implement the code.

Accompanying this technical note is an example database that provides interactive examples illustrating possible uses of On Keystroke form events. The example also provides code ready for use in your applications.


Tech Note