Stringfunctions+ | Formula LISTPARTSTRING
Description
This formula displays parts of an HTML list.
Formula(s)
{=LISTPARTSTRING("String or array for editing";Start;Length; Display type;Include surrounding HTML)}
Result
String
Array
Parameters
Parameter | Content | Format | Default value | Explanation |
---|---|---|---|---|
String or array for editing | String containing an HTML list element, a string separated by line breaks or an array defining a list | String Array |
|
|
Start | Non-negative index starting from 0 | Integer | 0 |
|
Length | Length of the list | Integer | 0 | Positive: List contains this number of elements (if possible) Negative: Original list shortened by the number of elements 0: all (from start in each case) |
Display type | Output format, as in the original, as unordered list (ul), ordered list (ol), array or the list items (li) only | Integer | DISPLAY_TYPE_ORIGINAL | Possible values:
|
Include surrounding HTML | TRUE or FALSE | Boolean | FALSE | TRUE: Surrounding HTML is included FALSE: Only the list / list elements are included |