EmEditor (text editor) Forum Index
   Questions and Answers about Macros
     Jump to a given line
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
QiaoJiao
Posted on: 12/15/2012 11:23 pm
Not too shy to talk
Joined: 10/25/2007
From:
Posts: 31
Re: Jump to a given line
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);
Flat Previous Topic | Next Topic


Subject Poster Date
   Jump to a given line QiaoJiao 12/15/2012 8:20 am
     Re: Jump to a given line QiaoJiao 12/15/2012 9:13 am
       Re: Jump to a given line Yutaka 12/15/2012 4:25 pm
       » Re: Jump to a given line QiaoJiao 12/15/2012 11:23 pm
           Re: Jump to a given line QiaoJiao 1/2/2013 10:37 pm

Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文