I am unable to set the editor cursor using the setCaretPos or the ecGotoXY.

var i = 100;
editor.setCaretPos(i,0);

none of these worked either:
editor.command("ecGotoXY{100,0}")
editor.command("ecGotoXY{100;0}")
editor.command("ecGotoXY(100,0)")
editor.command("ecGotoXY(100;0)")
editor.command("ecGotoXY{100}{0}")
editor.command("ecGotoXY{100},{0}")

How do I get this to work? At this moment I am using the ecPageDown and ecDown
to get the cursor to the desired line.

-- 
<http://forum.pspad.com/read.php?2,44614,44614>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem