<<

Contents

Search

>>

 

EDITOR_SET_CURSOR

 

 

Function

 

 

Syntax:

EDITOR_SET_CURSOR(<Mask Field>,<Cursor Position>[,<Mark Until>[,<Handle>]])

 

<Mask Field>

= <MASK FIELD>

<Cursor Position>

= <NUM-EXPRESSION>

<Mark Until>

= <NUM-EXPRESSION>

<Handle>

= <NUM-EXPRESSION>

 

 

Meaning:

EDITOR_SET_CURSOR sets the cursor in a Word Processor to the position <Cursorposition>.

 

Note: The cursor position is counted from 1 upwards.

 

If <Cursorposition> < 0, the cursor is moved to the end of the text.

 

<Select until position> specifies until where the text is to be selected.

 

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

 

<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_SET_CURSOR returns the cursor position on which the cursor has been set, or an error number.

Result

Meaning

>= 0

Cursor has been set.

-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

Cursor Position

Cursor position

Mark Until

End position of selected text

Handle

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

 

Sample:

H% = EDITOR_SET_CURSOR(#5.#EDIT$,12)

IF H% <> 0

THEN ... Error ...

ENDIF

 

See also:

EDITOR_GET_CURSOR

EDITOR_GET_STYLEDTEXT$

EDITOR_GET_TEXT$

EDITOR_HAS_CHANGED

EDITOR_INSERT

EDITOR_LOAD_FILE

EDITOR_LOAD_STRING

EDITOR_SET_COLOR

EDITOR_SET_STYLE

EDITOR_RESET_CHANGED

GET_STYLEDTEXT_FROM_FILE$