Please enable JavaScript to view this site.

R:BASE 11 Help

Navigation: Function Index > R

REVLIST

Scroll Prev Top Next More

(REVLIST(text,delimiter))

 

Reverses the order of items in a list of values. The delimiter argument allows for a custom delimiter for the list, similar to the SSUBCD function.

 

The returned value is list in the reverse order. In the following example, the value for vReverseList is "Five,Four,Three,Two,One".

 

SET VAR vReverseList TEXT = (REVLIST('One,Two,Three,Four,Five',(CHAR(044))))