PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
[Bottom][Contents][Search][Prev]: ArraySort()[Next]: ArrayTranslate()
\ -> Rexx -> Inbuilt PPWIZARD Functions -> ArraySplit()


This is an inbuilt function function provided by PPWIZARD.

This routine splits a string value based on a delimiter into multiple tokens (stored in an array).

This function takes two or more parameters as follows:

  1. The name of the array to create (don't include the dot).

  2. The value to be processed (split).

  3. An optional delimiter (a single space is the default). A delimiter can be any number of characters long.

  4. This optional parameter indicates what type of space translation should occur (if not supplied "B" is used). This value should be "K" to leave whitespace alone! It can be be "BM" to remove all leading and trailing whitespace as well as removing any duplicated whitespace within the string. You can also supply "L", "T", or "B" to remove leading, trailing or both types of whitespace.

  5. This optional parameter allows you to specify that you wish to keep blank tokens (or those only containing whitespace). Normally blank tokens are dropped, pass 'Y' to prevent this.

The number of items in the array is returned.


call ArraySplit 'Fruit', 'apple orange pear'

email me  any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Search][Prev]: ArraySort()[Next]: ArrayTranslate()

My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Saturday May 28 2022 at 2:55pm