Use the UNIQUE() function to scan a string for a character that does not appear in the string. This character can be used as a delimiter.
The UNIQUE() function has this syntax:
char = UNIQUE(string,[prefer],[EXTEND])
The UNIQUE() function takes these arguments.
Single character that does not appear in string.
String to be examined.
List of preferred characters. If specified, the left-most unique character is returned. The default is to use an internal preference.
If specified and none of the characters specified in prefer is unique, then the preference list will be extended to all 256 possible characters.
The UNIQUE() function produces these return codes:
ARG n MISSING OR INVALID
NO UNIQUE CHARACTER
Example
/* Return 3 values on the Stack */ a = ..... /* arbitrary values assigned */ b = ..... c = ..... d = unique(a||b||c) queue d||a||d||b||d||c||d /* Retrieve the values from the Stack */ parse pull 1 d +1 a (d) b (d) c (d)
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |