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

ArraySplit()

This is a rexx function provided by PPWIZARD. This routine (like all PPWIZARD extensions) can be used with any operating system supported 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.


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

PPWIZARD Manual
My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Thursday January 17 2002 at 6:27pm