December 16, 2012 at 8:23 am #10667
QiaoJiao
Participant
Thank you, it is exactly what I am looking for.
Actually, I need to jump to a random line. Here is a code for it:
var lines_total = document.GetLines();
var line_random = Math.floor((Math.random()*lines_total)+1);
document.selection.SetActivePoint(eePosLogical, 1, line_random);