Extract all values from a list value

How to extract all values from a list value starting with a given string.

Assume we have a list like this one:

List1:="Arrow1":"ABC":"Arrow2":"Arrow34":"ABCDEFG"

and we need to retrieve all the values from List1 beginning with "Arrow."

Namely:"Arrow1":"Arrow2":"Arrow34"

Then

List1:="Arrow1":"ABC":"Arrow2":"
Arrow34":"ABCDEFG";
K:=@Replace(@Left(List1;5);"Arrow";"");
A:=@Trim(K+"*~*"+List1);
B:=@Replace(A;"*~*"+List1;"");
M:=@Right(@trim(B);"*~*");
@Trim(@Replace(List1;M;""));

Do you have comments on this tip? Let us know.

This tip was submitted to the SearchDomino.com tip library by member Bobby Varghese. Please let others know how useful it is via the rating scale below. Do you have a useful Lotus Notes, Domino, Workplace or WebSphere tip or code snippet to share? Submit it to our monthly tip contest and you could win a prize.

This was first published in January 2004

Dig deeper on Lotus Notes Domino Formula Language

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWinIT

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.UK

Close