OS/2 Procedures Language 2/REXX


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


XRANGE




 >>---XRANGE(-+-------+--+-------+-)-------><
              +-start-+  +-,end--+

XRANGE returns a string of all one-byte codes between and including the 
values start and end. The default value for start is `00'x, and the 
default value for end is `FF'x. If start is greater than end, the values 
wrap from `FF'x to `00'x. If specified, start and end must be single 
characters. 
Here are some examples: 

XRANGE('a','f')      ->   'abcdef'
XRANGE('03'x,'07'x)  ->   '0304050607'x
XRANGE(,'04'x)       ->   '0001020304'x
XRANGE('i','j')      ->   '898A8B8C8D8E8F9091'x  /* EBCDIC */
XRANGE('FE'x,'02'x)  ->   'FEFF000102'x
XRANGE('i','j')      ->   'ij'                   /* ASCII  */
  

Inf-HTML End Run - Successful