Left - return characters from the left side of a string

Return to Introduction  Previous page  Next page

$return = left(string,length)

Where:

 

$returnthe characters from the left side of the string.
stringthe input string of characters.        
lengththe number of characters to return.        If 0 is specified, no characters are returned. If the length is greater than the input string length, the entire string is returned.

 

string and length may be variables.

The Left command returns the specified number of characters from the left side of the string.

Examples

$return = left("abcefgh",4)

$return = left($text,$length)

 

See Also:

 

Mid

Right

Script Command Summary

Script Variables

Using the Scripting Language


TN3270 Plus is continually being improved. To learn more about the latest enhancements, please review our Version History web page.