#22857
Yutaka Emura
キーマスター

loop bridge 様

いつもお世話になっております。江村です。

以前は、document.selection.Mode = eeModeLine; が抜けていて申し訳ありませんでした。また、document.selection.Mode = eeModeLine; が無くても、1 つ上の行数を指定すればいいのです。

また、document.selection.Mode = eeModeLine; は、2番目の SetActivePoint の後に 1 回だけ書きます。

したがって、次のように書くか、

tmpST = 5;
tmpED = 10;

document.selection.SetActivePoint( eePosLogical, 1, tmpST);
document.selection.SetActivePoint( eePosLogical, 1, tmpED ,true );
document.selection.Mode = eeModeLine;
//alert(tmpST + "–" + tmpED); //デバグ用
document.selection.Delete();

あるいは、次のように書きます。

tmpST = 5;
tmpED = 10;

document.selection.SetActivePoint( eePosLogical, 1, tmpST);
document.selection.SetActivePoint( eePosLogical, 1, tmpED + 1 ,true );
//alert(tmpST + "–" + tmpED); //デバグ用
document.selection.Delete();

よろしくお願い申し上げます。