Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » Commands

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

enterInField

enterInField
HyperCard sends the enterInField command to a field when the user presses Enter and the insertion point is in the field.
This command saves the results of any changes the user or a handler makes to a field and closes the field.

HyperCard sends a closeField message if the user made changes to the text or sends exitField if the user did not make any changes).

You can handle the enterInField message as follows:

on enterInField
   statements
end enterInField



Placeholders

statements
Any return-separated list of built-in commands, user-defined handlers, or keywords that are part of a message or function handler.

put "Hello world"   -- built-in command
get total(field 1)  -- function call
global HelpInfo     -- keyword


Related Topics

« enable | HyperTalk Reference | enterKey »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Retro View