import { split } from "lib/Array.cms"; input = InputBox("削除する行を指定してください。"); p = pos(input, "-"); if (p > 0) { start = left(input, p - 1) - 1; deleteCount = mid(input, p + 1) - start; } else { start = input - 1; deleteCount = 1; } for (y = SelTop; y <= SelBottom; y++) { for (x = SelLeft; x <= SelRight; x++) { array = split([x,y], "\n"); array.splice(start, deleteCount); [x,y] = array.join("\n"); } }