Splits a text into individual texts, at positions on each line marked by separator character(s) (R.W. Payne).
||Defines the character(s) that indicate where to split each line; default
||Whether to retain the separator at the end of a split text, or any spaces at its start and end (
||Text to split|
||Saves the texts into which
TXSPLIT splits a text into individual texts. The positions at which to split each line are marked by the character, or characters, specified by the
SEPARATOR option; by default, the separator character is a comma.
TXSPLIT removes the separators between the split texts, as well as any spaces at the start and end of each spit text (i.e. any spaces around the separators, or at the start or end of the original text). The
INCLUDE option allows you to request that the separator be left at the end of a split text, and that these spaces should be retained.
TEXT parameter supplies the text that is to be split. The texts into which it is split are saved, in a pointer, by the
Any restrictions on the original text are ignored.
CAPTION 'TXSPLIT example'; STYLE=meta TEXT [VALUES='London, Oxford, Stratford upon Avon, Warwick',\ 'Windsor, Stonehenge, Bath',\ 'Leeds Castle, Dover, Canterbury, Greenwich',\ 'Oxford, Cambridge'] Itineraries TXSPLIT Itineraries; SPLITTEXTS=Stops PRINT Itineraries,Stops