$curword

Return the word on which the cursor is positioned in the current Unifield.

$curword

Example: help $text("%%$curword%%%_HLP")

Return Values

Word on which the cursor is currently positioned.

Use

Use in Form components, but only applicable to Unifields.

Description

The $curword allows you to refer to a particular word in a field.

Note:  This function is valid only in a Unifield; it has no effect in widgets.

Using $curword

The following example uses $curword to provide context-sensitive help. The user positions the cursor on a particular word in the field and activates the help trigger for that field:

trigger help
   help $text("%%$curword%%%_HLP")
end; help

Related Topics