.. highlightlang:: us .. index:: EdReplaceSel .. _edreplacesel: EdReplaceSel ============ .. us.tag EdReplaceSel ENGLISH EdSet :ref:`EdReplaceSel` replaces the current selection with the specified text. .. function:: bool = EdReplaceSel(hEdit, ssReplaceText) .. 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:: ssReplaceText *ssReplaceText* replaces the current selection. .. seealso:: :ref:`overview-editors`, :ref:`EdSetText`, :ref:`EdCreate` :sub:`id-1807362`