fgl_dialog_getselectionend()

Returns the position of the last selected character in the current field.

Syntax

fgl_dialog_getselectionend()
  RETURNS INTEGER

Usage

The fgl_dialog_getselectionend() function returns the edit cursor position of the last selected character in the text of 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.

The function returns zero if the complete text is selected.

The edit cursor position returned by fgl_dialog_getcursor() will be lower than the position returned by fgl_dialog_getselectionend() if the text has been selected backwards.