FGL_DIALOG_GETCURSOR() / FGL_GETCURSOR()

Returns the position of the edit cursor in the current field.

Syntax

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

Usage

The FGL_DIALOG_GETCURSOR() function can be used in conjunction with FGL_DIALOG_GETSELECTIONEND() to get the position of the edit cursor and the piece of text that is selected in the current 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.