MoveColumn Method (Document Object)

Moves or copies specified columns in a CSV mode.

[JavaScript]

document.MoveColumn( iColumn, iColumn2, iColumnTo [ , nFlags ] );

[VBScript]

document.MoveColumn iColumn, iColumn2, iColumnTo [ , nFlags ]

Parameters

iColumn1

Specifies the first column to move or copy.

iColumn2

Specifies the last column to move or copy.

iColumnTo

Specifies the column to move or copy the columns before.

nFlags

You can specify one the following values. If omitted, eeColumnMove is used.

Value

Meaning

eeColumnMove

Moves columns from iColumn1 through iColumn2 before iColumnTo.

eeColumnCopy

Copies columns from iColumn1 through iColumn2 before iColumnTo.

Examples

The following example moves column 3 to the left edge.

[JavaScript]

document.MoveColumn( 3, 3, 1 );

[VBScript]

document.MoveColumn 3, 3, 1

Version

Supported on EmEditor Professional Version 19.7 or later.