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.