Home THE HYPERCARD CENTER

HyperTalk Reference
Home » HyperTalk Reference »

Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.

selectedField

the selectedField

Value returned: a field expression that indicates the field in which a range of characters is currently highlighted. If nothing is highlighted, it returns empty. The field expression returned has one of the following forms:

card field n
bkgnd field n

where n is the number of the field.

Examples

get the selectedField
put the selectedField into theField

Demo Script

on selectedFieldDemo
select line 1 of field 1
wait 15
answer "The field containing the selection is:" & return &¬
the name of the selectedField
end selectedFieldDemo

Related Topics

Placeholders

HyperTalk Reference


Version 0.8b4 (July 4, 2025)

Made with Macintosh

Switch to Modern View