For the latest version of JMP Help, visit JMP.com/help.


Scripting Guide > Scripting Tools > Work with the Script Editor > Type in Multiple Rows at Once
Publication date: 04/21/2023

Type 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.

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).