|
<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>
Not applicable.
<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:
|
Questions? Comments? Please write support@desert.net. |