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.