Solved

# Easy one for 50 Pts

Posted on 2003-12-09
241 Views
Field 1 Editable Multi-values...

Need Field 2 to compute values from 1 - @Elements(Field1)

If i have 10 elements in Field1 then Field2 should have values 1,2,3,4,5,6,7,8,9,10

Thanks!
0
Question by:Arunkumar
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 4
• 3
• 2

LVL 46

Accepted Solution

Sjef Bosman earned 50 total points
ID: 9905547
Use the @While function in Formula...
0

LVL 9

Author Comment

ID: 9905797
DAMN!
0

LVL 9

Author Comment

ID: 9905908
Little bit of problems. Can you send me a cut & Paste solution please ?
0

LVL 46

Expert Comment

ID: 9910625
Hang on... In a jiffy!
0

LVL 46

Expert Comment

ID: 9910663
How 'bout this, albeit a little differen, I used a @For (which also exists!):

max:= 10;
list:= "1";
@For(n := 2; n <= max; n := n + 1;
list:= list:@Text(n));
list

To my surprise, you can reuse variables! Never tried in previous versions, since it used to be disallowed. Anyway, here you have it. And thanks for the points, by the way, but it will lead to serious point inflation...
0

LVL 13

Expert Comment

ID: 9911034
Arun, in case you ever need such lists in R5 or lower:

REM "Basic ingredient: a short list of numbers";
n := @Explode("0 1 2 3 4 5 6 7 8 9"; " ");

REM "Generate a complete 3 digit list";
lst000To999 := n *+ n *+ n;

REM "Now for what we really need:";
startOn1 := @Subset(Lst000To999; -(@Elements(lst000To999) -1));
lst1To10 := @Subset(startOn1; 10);
@TextToNumber(lst1To10)

You would have come up with those last few lines yourself... the power is in the *+ line....

* free of charge *
;-)
0

LVL 9

Author Comment

ID: 9911867
CRAK !

Thats what I was trying and completely forgot that I was on R6 while doing.  You deserve it buddy.  Nothing comes free in this world right ?  Check out for your points.

:-)
0

LVL 46

Expert Comment

ID: 9912596
It's good that there's R6 now, the overhead creating 990 list elements to be trashed immediately afterwards is considerable. Although, I assume looping in @Formula language isn't that efficient at all. Implicit list processing is a lot faster probably...
0

LVL 13

Expert Comment

ID: 9912868
If you need a list of max. 2 digit numbers, you could use n*+n and trash 90!
I wonder what's faster... the @For-cycle or the list operation...
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
###### Suggested Courses
Course of the Month7 days, 23 hours left to enroll