fgl_dialog_getcursor() / fgl_getcursor()

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

Syntax

fgl_dialog_getcursor()
  RETURNS INTEGER

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 matters when using a multibyte locale such as UTF-8.