SECTION$ |
SECTION$(Document$, PageHeader$, PageEnd$, [AddLines%=>0]) |
Arguments
Document$ |
PageHeader$ |
Document$ |
PageEnd$ |
Document$ |
Document$ |
AddLines% |
AddLines%=1 |
PageEnd$ |
Assuming a document with the following 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" |
then
SECTION$(Document$, "fall apart", "ceremony") |
returns
"Things fall apart; the centre cannot hold; Mere anarchy is loosed upon the world The blood-dimmed tide is loosed, and everywhere " |
SECTION$(Document$, "fall apart", "Ceremony") |
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 " |
Because "Ceremony" does not occur in Document$. Note, the function is case sensitive.
SECTION$(Document$, "falls apart", "ceremony") |
returns
since "falls apart" is not present in Document$.
SECTION$(Document$, "fall apart", "ceremony", 2) |
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 " |
Two more lines are included.
Quick links: Functions overview | Attribute overview | Constants overview | Dimensions overview