bdeGetEditorSelectedStartLine

Gets the line where the selected text of a given editor starts.

Syntax

selectedStartLine = bdeGetEditorSelectedStartLine(editor)

Inputs

editor
The editor that the selected text is in.
Type: hwscpTextEditor

Outputs

selectedStartLine
The line number that the selected text of an editor starts on.
Type: integer

Examples

Get the line number that the selected text of an editor starts on:

selectedStartLine = bdeGetEditorSelectedStartLine(editor);

selectedStartLine = 2