Show/Hide Toolbars

EmEditor Help

Navigation: EmEditor Help > Plug-in Reference > Inline Functions

EmEditor Plug-in Reference: Editor_EditColumn

Scroll Prev Top Next More
EmEditor Home - EmEditor Help - Plug-in Reference - Inline Functions

Editor_EditColumn

Moves, copies, or combines specified columns of the current CSV document. You can use this inline function or explicitly send the EE_EDIT_COLUMN message.

HRESULT Editor_EditColumn( HWND hwnd, UINT nFlags, int iColumnFrom1, int iColumnFrom2, int iColumnTo, LPCWSTR pszInsert );

Parameters

hwnd

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

nFlags

You can specify one of the following values.

Value

Meaning

COLUMN_MOVE

Moves columns from iColumn1 through iColumn2 before iColumnTo.

COLUMN_COPY

Copies columns from iColumn1 through iColumn2 before iColumnTo.

COLUMN_CONCAT

Concatenates columns from iColumn1 through iColumn2, optionally using pszInsert as a separator.

COLUMN_COALESCE

Combines columns from iColumn1 through iColumn2 into one column using the first non-empty value.

iColumn1

Specifies the first column to apply the message.

iColumn2

Specifies the last column to apply the message.

iColumnTo

Specifies the column to move or copy the columns before if COLUMN_MOVE or COLUMN_COPY is specified. This field is used only when COLUMN_MOVE or COLUMN_COPY is specified.

pszInsert

Specifies a string as a separator when concatenating columns. This field is used only when COLUMN_CONCAT is specified.

Return Values

The return value is S_OK if succeeds.

Version

Supported on Version 19.7 or later.

Copyright © 2003-2021 by Emurasoft, Inc.