Getting an item from a text list in formula language

HI

I have a variable that has a random number and another variable that contains a list of text.

How can I quickly retrieve the text from the list ( using formula) when the first variable is the index number?

I have searched the forum and saw a solution with the undocumented @GetMember fucntion. But that is not working for my notes version.

Any help will be appreciated.

Regards

Subject: Getting an item from a text list in formula language

normaly @getmembers works since Domino 6.

here an example:

list := “A”:“B”:“C”:“D”;

index:= 3

x := @GetMembers(list; index);

now x contains “C”

if this still not work for you, here is another way to do this:

_x:= “a”:“b”:“c”:“d”;

_index:= 3; [instead 3 your random number]

now x contains 3

greets from austria

Bernhard

Subject: RE: Getting an item from a text list in formula language

Hi

Thank you for responding. I made a stupid mistake. I typed @GetMember() instead of @GetMembers().

Kind Regards

Subject: RE: Getting an item from a text list in formula language

how about simply var[n]

list := “Yellow” : “Brown” : “Green” : “Blue”

list[3] results in Green