Property

Method

Event

 

 

SetCaretPos

Sets the position of the input caret.

Syntax

    HRESULT SetCaretPos(
    long pos
    );

Parameters

pos

[in] The paragraph in which to locate the caret.

-1

Last paragraph of the document.

0 , 1

First paragraph of the document.

others

Specified paragraph.

Return Values

0 (always)

Sample Codes

JScript

    var objNamo;
    objNamo = document.wec;
    objNamo.SetCaretPos 0 //Place the caret in the first paragraph.

 

VBScript

    dim object
    Set object = document.editForm
    object.Wec.SetCaretPos 0 ' Place the caret in the first paragraph.

See Also

 GetCaretPos, InsertValue