Select or hide columns in worksheet
Minimum Origin Version Required: Origin 2017 SR0
1. wselcol colx:=c test:=<[<c[L]$=="Sensor*">]> end:=10; //Select the "Sensor" columns(with word "Sensor" in its column long name).
2. wselcol operation:=hide mode:=skip sel:=2 skip:=3 end:=10; //Hide every 2 columns and then skip next every next 3 columns.
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Input Worksheet | iw |
Input Worksheet |
|
Specify the input worksheet. Default is the current active worksheet. |
Operation | operation |
Input int |
|
Specify how to deal with the desired columns:
Option list:
|
Mode | mode |
Input int |
|
Specify the mode to select the desired columns
Option list:
|
Variable to Represent Test Column | colx |
Input string |
|
Define a variable name to represent columns, which is used in the conditional expression (such as. x[U]$=="amp" ) |
Test Condition | test |
Input string |
|
Enter conditional expression in the edit box used to extract columns. You can use predefined variable name(such as x) and column label row character. For example,
x[U]$=="amp*" && x[C]$=="reference" //select the columns with long name equals "amp" and comments equals "reference" The wildcards (* and ?) are allowed here. More details, please refer to the condition box in Worksheet Query. |
N= | sel |
Input int |
|
Select every N columns. This option is available when the Mode is set to By Select N columns and Skip M columns. |
M= | skip |
Input int |
|
Skip every M columns after selected N columns. This option is available when the Mode is set to By Select N columns and Skip M columns. |
Start Column | start |
Input int |
|
Specify the starting column. |
End Column | end |
Input int |
|
Specify the End column. |
This X-Function is used to select or hide desired columns before plotting or analyzing.
The Select dialog, which is similar but simpler, is also available.