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.
query command
The current view's document.
query lines[.beforeStart | .afterEnd]
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. |
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.
query lines
locate command
query command
element parameter
elements parameter
line parameter
show parameter
Copyright IBM Corporation 1992, 2005. All Rights Reserved.