Show/Hide Toolbars

EmEditor Help

Navigation: EmEditor Help > Macro Reference > Document Object > Methods

EmEditor Macro Reference: MoveColumn Method

Scroll Prev Top Next More
EmEditor Home - EmEditor Help - EmEditor Macro Reference - Document Object

MoveColumn Method

Moves or copies specified column(s) 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.

Copyright © 2003-2021 by Emurasoft, Inc.