|
left, right
Purpose: Computes a substring starting at the first (ending in the last) position of a string. The string parameter must be a string. The position parameter can be a string or an integer. Return Values: If position is an integer number n, then left() (right()) returns the left most (right most) n characters of string. If the position parameter is a string, then left() (right()) looks whether the position string is a substring in string. If found it returns the left most (right most) characters in string that are in front of (follow) the position string. If not found, then the whole string is returned. Example:
See Also: substring(). © 1996-2009 H.E.I. All Rights Reserved | |||||||||||||||||||||