.. highlightlang:: us .. index:: EdSetSel .. _edsetsel: EdSetSel ======== .. us.tag EdSetSel ENGLISH :ref:`EdSetSel` selects a range of characters in the editor. .. function:: bool = EdSetSel(hEdit, nStartChar, nEndChar) .. us.return **Return Value** If the function succeeds, the return value is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hEdit Identifies the editor. .. uparam:: nStartChar *nStartChar* specifies the starting position. If *nStartChar* is 0 and *nEndChar* is -1, all the text in the editor will be selected. If *nStartChar* is -1, the current selection will be removed. .. uparam:: nEndChar *nEndChar* specifies the end position. If *nEndChar* is -1, the text from *nStartChar* to the end of the editor will be selected. .. seealso:: :ref:`overview-editors`, :ref:`EdCreate` :sub:`id-1814569`