You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 9
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.
- When no last line is given, the function returns all text from Document$ starting with FirstLineNo%.
- If FirstLineNo%="NullString", the function returns a string starting at the first line of the source document.
- If LastLineNo%="NullString", the function returns all text from Document$ starting with FirstLineNo%.
- 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: Function overview | Attribute overview | Constants overview | Dimensions overview