Promote worksheet data rows to label rows
1. wrow2label longname:=1 unit:=2;
2. wrow2label comment:=3 removerow:=0 showlabel:=0;
Please refer to the page for additional option switches when accessing the x-function from script
Input
Worksheet
Specifies the input worksheet.
int
Specifies the index of the row that will be converted to short name.
Note that from Origin 2017 column Short Name is restricted to alphabetical order and it cannot be edited by default. So Row Index of Name option is hidden from GUI. If you want to rename column Short Names, you will need to go to the input workbook, uncheck Spreadsheet Cell Notation checkbox in the Properties tab of Window Properties dialog to enable editing column Short Name.
Specifies the index of the row that will be converted to long name.
Specifies the index of the row that will be converted to unit.
Specifies the index of the row that will be converted to comment.
Specifies whether to remove the converted rows.
Specifies whether to force the label rows that have the converted information to be shown after this X-Function is executed.
This X-function is used to set the label value.