OS/2 Procedures Language 2/REXX


Inf-HTML [About][Toc][Index] 0.9b (c) 1995 Peter Childs


LEFT




 >>--LEFT(string,length--+-------+-)-------><
                         +-,pad--+

LEFT returns a string of length length, containing the leftmost length 
characters of string. The string returned is padded with pad characters 
(or truncated) on the right as needed. The default pad character is a 
blank. length must be nonnegative. The LEFT function is exactly equivalent 
to SUBSTR(string,1,length[,pad]). 
Here are some examples: 

LEFT('abc d',8)        ->    'abc d   '
LEFT('abc d',8,'.')    ->    'abc d...'
LEFT('abc  def',7)     ->    'abc  de'
  

Inf-HTML End Run - Successful