Skip to main content

MoveCursorOutsideField

Moves the cursor outside a field to the position before or after it.

Syntax​

expression.MoveCursorOutsideField(fieldId, isBefore);

expression - A variable that represents an Api class.

Parameters​

NameRequired/OptionalData typeDefaultDescription
fieldIdOptionalstringField ID. If it is not specified, the current field is used.
isBeforeOptionalbooleantrueDefines whether the cursor is moved before (true) or after (false) the field.

Returns​

This method doesn't return any data.

Example​

Asc.plugin.executeMethod("MoveCursorOutsideField", [fieldId, false]);