Show/Hide Toolbars

EmEditor Help

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

EmEditor Macro Reference: ExtractColumns Method

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

ExtractColumns Method

Extracts the specified columns of the CSV document.

[JavaScript]

document.ExtractColumns( strColumns );

[VBScript]

document.ExtractColumns strColumns

Parameters

strColumns

Specifies the string to select which columns to include in the output document. This value is a combination of columns separated by commas. Each column can be either the first line of the column or a colon (:) followed by the index of the column. For example, ":1,:3" will output the first and third columns of the active document, and "first_name,last_name" will output the column whose first line matches "first_name" or "last_name". Use '+' instead of ',' to concatenate with the previous column, and '|' to use the first non-empty value.

Version

Supported on EmEditor Professional Version 18.4 or later.

Copyright © 2003-2021 by Emurasoft, Inc.