Skip to main content

MoveCursorToField

Moves the cursor to the beginning or end of a field.

Syntax

expression.MoveCursorToField(fieldId, isBegin);

expression - A variable that represents a Api class.

Parameters

NameRequired/OptionalData typeDefaultDescription
fieldIdOptionalstringField ID. If it is not specified, the current field is used.
isBeginOptionalbooleanfalseDefines whether the cursor is moved to the beginning (true) or end (false) of the field.

Returns

This method doesn't return any data.

Example

Asc.plugin.executeMethod("MoveCursorToField", [fieldId, true]);