<<

Contents

Search

>>

 

EDITOR_GET_CURSOR

 

 

Function

 

 

Syntax:

EDITOR_GET_CURSOR(<Mask Field>[,<Handle>])

 

<Mask Field>

= <MASK FIELD>

<Handle>

= <NUM-EXPRESSION>

 

 

Meaning:

Returns the current cursor position in word processor

 

<Mask Field> has to be a Word Processor field.

 

Note: The cursor position is counted from 1 upwards.

 

<Handle> specifies the window that contains the word processor field. <Handle> can contain the window depth or the handle of a split window or a WINDOWCALL window. If the parameter <Handle> is missing, the word processor field must be on the current mask.

 

EDITOR_GET_CURSOR returns the cursor position or an error number.

 

Result

Meaning

>= 0

Cursor position

-1

<Mask Field> not found.

-2

<Mask Field> is not a Word Processor.

 

Attention: This function has no effect with Html programs.

 

Parameter:

Mask Field

Word Processor field

Handle

Window depth or handle of a split window or handle of a WINDOWCALL Window

 

Sample:

POS% = EDITOR_GET_CURSOR(#5.#PROCESSOR$)

 

See also:

EDITOR_GET_STYLEDTEXT$

EDITOR_GET_TEXT$

EDITOR_HAS_CHANGED

EDITOR_INSERT

EDITOR_LOAD_FILE

EDITOR_LOAD_STRING

EDITOR_RESET_CHANGED

EDITOR_SET_COLOR

EDITOR_SET_CURSOR

EDITOR_SET_STYLE

GET_STYLEDTEXT_FROM_FILE$