Sorting a list into 3 columns with @Formulas

Hi,

This is a CS101 problem, but I never paid attention in class :slight_smile:

I have a multi-value field. I want to sort the values of that field into 3 columns as follows:

List=Val1;Val2;Val3;Val4;Val5;Val6;Val7

Col1=Val1;Val2;Val3;

Col2=Val4;Val5;Val6;

Col3=Val7

And so on. Help please…?

Subject: Oups! Ignore, I badly understood the question!

Hi,

I would make like this :

Rem “Return the first three values”

Col1 = @Subset(FieldName;3)

Rem “Return the last three values of firs six”

Col2 = @Subset(@subset(Fieldname;6);-3)

Rem “Return the last value”

Col3 = @Subset(FieldName;-1)

HTH

Thierry

Subject: Sorting a list into 3 columns with @Formulas

Basically,

Field col1 := list[1] : list[2] : list[3];

Field col2 := list[4] : list[5] : list[6];

Field col1 := list[7] : list[8] : …

you might possibly use a @For loop and @Elements(see Notes help)

Subject: …another thing

you may want to do a

Field list := @Sort(list);

before breaking the list contents down into separate fields.