OpenNTF.org - Generating a list of numbers
My Links (Not logged in)
Code Bin Search
 
Hosted by Prominic.NET
Rate This Code
5 - brilliant stuff
4 - very nice
3 - average
2 - needs work
1 - bad
   OpenNTF Code Bin
About This Code
Brief Description:
Generating a list of numbers  
Rating:
Not Rated Yet 
Contributor:
Parthasarathy Perumbali 
Category:
Lotus Formula 
Type:
Example Code 
Notes Version:
R5.x 
Last Modified:
30 Dec 2003 
OpenNTF Disclaimer

All of the program code and information presented in the OpenNTF.org Code Bin are provided "as-is", and should be used at your own risk. OpenNTF.org make no express or implied warranty about anything in the Code Bin, and OpenNTF.org will not be responsible or liable for any damage caused by the use or misuse of anything from this site. OpenNTF.org makes no guarantees about anything. Please thoroughly test all of the knowledge and code you find here before you attempt to use them in your production environment.

Code / Description
initialnumber:= "0:1:2:3:4:5:6:7:8:9";

expnum:=@Explode(initialnumber;":");

FIELD test:=@texttonumber(expnum*+expnum*+expnum);

Usage / Example
I used it in one of the places like this:

Assume you have a field by name e_txt_fieldlist , allow multivalues with follwoing values:

"partha":"test":"testanother"

this formula would number each of the items...

@If(e_txt_fieldlist="";@Return(@Prompt([OK]; "Error Message"; "No Value found to modify"));@Success);
D:= "0:1:2:3:4:5:6:7:8:9";
F:=@Explode(D;":");
List:=@Subset(@TextToNumber(F*+F*+F);-999);
listofElements := @Subset(@Text(list);@Elements(e_txt_fieldlist));
lineitem := @Prompt([OKCANCELLIST] : [NoSort];"Alert"; "Select the title you wish to modify";"";listofelements + ". " +e_txt_fieldlist);lineitem
 Comments

No documents found

 Add your comment!