fgl_dialog_setcursor()

This function sets the position of the edit cursor in the current field.

Syntax

fgl_dialog_setcursor(
   position INTEGER )
  1. position is the edit cursor position in the text, using byte length semantics.

Usage

The fgl_dialog_setcursor() moves the edit cursor to the specified position in the current field. The function must be called in interactive instructions control blocks, when staying in the current field.

This function has only an effect when staying in the current field, it should not be called in an AFTER FIELD or AFTER ROW for example.

Note that you can use FGL_DIALOG_SETSELECTION() to select a piece of text in a field.

Important: When using byte length semantics, the position is expressed in bytes. When using char length semantics, the unit is characters. This is matters when using a multibyte locale such as UTF-8.