Thursday, June 11, 2026

Tip of the Day: New REVLIST Function Added
Product: R:BASE 11
Build: 11.0.3.20611 or higher
Section: Functions
Keywords: REVLIST, Reverse, List, Delimiter

A new *REVLIST* string manipulation function has been implemented to reverse the order of items within a delimited list of values.

*Syntax:*

|(REVLIST(text,delimiter))|

Where:

 * *text* specifies the list of values to be reversed.
 * *delimiter* specifies the character used to separate the list items.

The function returns the list with the items in reverse order while preserving the specified delimiter.

The *delimiter* argument allows the use of custom list separators, similar to the functionality provided by the *SSUBCD* function.

*Example:*

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

The value assigned to *vReverseList* will be:

|Five,Four,Three,Two,One|

The *REVLIST* function differs from the *REVERSE* function, which reverses the order of individual characters within a text string. Instead, *REVLIST* operates on a list of delimited values, reversing the order of the list items while maintaining the integrity of each item.

The Support Team
R:BASE Technologies, Inc.
https://www.rbase.com

--
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- You received this message because you are subscribed to the Google Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/rbase-l/85fca50b-20d5-1729-4934-3099e61cccd2%40rbase.com.

Reply via email to