<dpLength>
D E F I N I T I O N:
<dpLength> returns the length of a string in paragraphs (p), sentences (s), words (w), or characters (c).
<dpLength unit="p|s|w|c">string or tag(s) to evaluate</dpLength>
A T T R I B U T E S:
Not applicable.
E X A M P L E S:
<dpLength unit="w">How many words?</dpLength> would return 3
<dpLength unit="w">How many characters?</dpLength> would return 18
A more common usage would be:
<dpVar totalParagraphs="<dpLength unit="p"><dpStory></dpLength>">
You now have a variable that holds the number of total paragraphs this story has. This can be used for layout purposes, statistical information like word count, a variable to determine if you should split this story into multiple pages, etc.
| Home: Support: Reference Guide: Miscellaneous Tags: <dpLength> | Questions? Comments? Please write support@desert.net. |