Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


PARAGRAPH$


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


Syntax

PARAGRAPH$(Document$, FirstLineNo%, [LastLineNo%])

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.

...


Let Document$ contain the text:

"Turning and turning in the widening gyre 
The falcon cannot hear the falconer; 
Things fall apart; the centre cannot hold; 
Mere anarchy is loosed upon the world 
The blood-dimmed tide is loosed, and everywhere 
The ceremony of innocence is drowned; 
The best lack all conviction, while the worst 
Are full of passionate intensity"

Example 1


PARAGRAPH$(Document$, 3)

 returns


"Things fall apart; the centre cannot hold; 
Mere anarchy is loosed upon the world 
The blood-dimmed tide is loosed, and everywhere 
The ceremony of innocence is drowned; 
The best lack all conviction, while the worst 
Are full of passionate intensity"

Example 2


PARAGRAPH$(Document$, 3, 5)

 returns


"Things fall apart; the centre cannot hold; 
Mere anarchy is loosed upon the world 
The blood-dimmed tide is loosed, and everywhere"


 

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

...