Scripting Guide > Scripting Tools > Work with the Script Editor > Typing in Multiple Rows at Once
发布日期: 11/15/2021

Typing in Multiple Rows at Once

When you edit a script, you can type in multiple rows at once instead of manually updating the same code on multiple lines. For example, in the following script, you want to change the s variable to aString. You can easily change the first instance of s to aString. To change the other instances at once, hold down Alt and select the column of s variables. Type aString once.

s = "";
For( i = 1, i <= n, i++,
	s += "Hello";
	s += "Number";
	s += Char( i );
);

The script then looks like this:

aString = "";
For( i = 1, i <= n, i++,
	aString += "Hello";
	aString += "Number";
	aString += Char( i );
);

Note: You can type in multiple rows at once, but you can type only in the same column. In the preceding example, the s variables are in the same column.

需要更多信息?有问题?从 JMP 用户社区得到解答 (community.jmp.com).