lines parameter

Use the lines parameter to determine the number of lines in the current document.  The value returned by the lines parameter is the same as the value returned by the elements parameter unless the document contains show elements.  Show elements are not counted by the lines parameter.

Availability

query command

Scope

The current view's document.

Syntax

query lines[.beforeStart | .afterEnd] 

Parameters

beforeStart Use the optional beforeStart qualifier to determine the number of lines in the complete document which are located prior to the document section currently loaded in the editor.
afterEnd Use the optional afterEnd qualifier to determine the number of lines in the complete document which are located after the document section currently loaded in the editor.

Description

The lines parameter returns the total number of lines in the current document.

When the beforeStart or afterEnd qualifier is used, the lines parameter returns the number of lines located before or after the current document section.  This only applies to certain special editor applications which load a partial document section in the editor.  Normally, the editor loads and operates on complete documents and files.

Examples

query lines 

Related reference
locate command
query command
element parameter
elements parameter
line parameter
show parameter