Editor_Unpivot

Converts columns into rows by flattening the CSV data. You can use this inline function or explicitly send the EE_UNPIVOT message.

HRESULT Editor_Unpivot( HWND hwnd, LPCWSTR pszSelect, LPCWSTR pszAttrLabel, LPCWSTR pszValueLabel, int nFooter );

Parameters

hwnd

Specifies the window handle of the view or frame of EmEditor.

pszSelect

Specifies the string to select which columns to be unpivot. Examples are "2-5", "3-", "1,3,5". This field cannot be empty.

pszAttrLabel

Specifies the heading label for the attribute column to be created.

pszValueLabel

Specifies the heading label for the value column to be created.

nFooter

Specifies the number of rows in the footer. The footer rows are not converted.

Return Values

The return value is a negative value if it fails.

Version

Supported on Version 21.4 or later.