You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 17 Next »

 returns a section from a document starting and ending with lines defined by their line numbers.

Syntax

Arguments

  • Document$ is a string containing the source document.
  • FirstLineNo% is the number of the line at which you want the section to start.
  • LastLineNo% is an optional value, containing the number of the last line of the section.

Remarks

  1. When no last line is given, the function returns all text from Document$ starting with FirstLineNo%.
  2. If FirstLineNo% = 0, the function returns a string starting at the first line of the source document.
  3. If LastLineNo% = 0, the function returns all text from Document$ starting with FirstLineNo%.
  4. One can also use the SECTION$() function to return a section of a document.

Examples


Let Document$ contain the text:

Example 1

 returns

Example 2

 returns


 

Quick links: Functions overview | Attribute overview | Constants overview | Dimensions overview

 

  • No labels