Home iWeb Logon Internet Meetings Contact Us Site Map

Z Programs

Z.split.text



Arguments:       A input string, or 'name of' input string (see E)
B - break characters, eg, " ;,."
C - length of desired piece
D - number of desired pieces
E - if present, A is 'name of' input string;
else, A is input string

Returns:            requested number of pieces in |1, |2, |3 etc

Example call:    %Z.split.text(“Hello there I am split.”,” .”,10,3)^x,

Returns             x|0 nil
                        x|1 “Hello”
                        x|2 “there I am”
x|3 “split.”

Note: If the string does not fit into the requested number of pieces of size B, the left over part of the string is returned in |0.

Posted: August 03, 2001

Return to list of Z Programs