fgl_dialog_getselectionend()

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

Syntax

fgl_dialog_getselectionend()
  RETURNING position INTEGER
  1. position is the position of the last selected character in the current field text, using in byte length semantics.

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 is 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 as the position returned by fgl_dialog_getselectionend() if the text has been selected backwards.