Queue set current field

Command groupFlag affectedReversibleExecute on clientPlatform(s)
EventsNONONOAll

Syntax

Queue set current field
 
field-name

Description

This command queues a "set current field" event in the specified field, that is, it simulates a user-generated click or tab to the specified field. In enter data mode, the contents of the field is selected. The command does not generate an evClick. However it will produce proper evBefore and evAfter events during Enter data.

The field name parameter must be the name of a window field, not the name of the method associated with the field or the data name ($name, not $dataname). As an alternative to a simple name string, you can supply a notation string such as $cinst.$objs.name or even $cinst.$toolbars.toolbar.$objs.name where in the latter case the object is a toolbar control in the window toolbar that can accept the focus e.g. a combo box.

Example

# field method to jump to another field within the same window instance

On
 
evAfter

  
Queue set current field
 
myField