OutOfList ( valueList ; start )
Rate this function: Average rating: 3.6 (11 votes) Discuss this Custom Function
Daniele Raybaudi, ACI
www.aci.it
Returns a string containing the NOT used numbers from a value list PLUS the value after the last used number.
Sample Input:
OutOfList ( 1¶2¶4¶6 ; 1 )
OutOfList ( 4¶6¶8¶9 ; 1 )
OutOfList ( "" ; 1 ) |
|
Sample Output:
|
Description:
Parameter:
valueList - list of numbers
start - number from wich to start
Returns a string containing the NOT used numbers from a value list PLUS the value after the last used number.
So:
OutOfList ( 1¶2¶4¶6 ; 1 ) returns: "3 5 7" ( each number is separated by a space )
OutOfList ( 4¶6¶8¶9 ; 1 ) returns: "1 2 3 5 7 10" ( each number is separated by a space )
OutOfList ( "" ; 1 ) returns: "1"
I used this CF to automatically recover the progression of an auto-entered number, when a record is deleted.
Simply make:
1) a value list ( "out" ) with values coming from the field
2) enter this calc into the option for auto-enter a value in the field:
LeftWords ( OutOfList ( ValueListItems ( Get ( FileName ) ; "out" ) ; 1 ) ; 1 )
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
This is my Custom Function and I want to
edit it
Discuss:There are no comments yet. Be the first to post a comment about this Custom Function! Please try to keep it brief & to the point. Anyone can post:
|
Newest Custom Functions:
| 1. |
list.intersect (listA; listB) |
| |
(Mon, May 14, 12:43pm) |
| 2. |
WeekStart ( weekOfYear ; year ) |
| |
(Sat, May 12, 8:42am) |
| 3. |
PercentToWords (FIELD) |
| |
(Thu, May 10, 3:16pm) |
| 4. |
PercentToText (FIELD) |
| |
(Thu, May 10, 2:37pm) |
| 5. |
StripReserved( text ) |
| |
(Wed, May 02, 6:05pm) |
| 6. |
ListBaseTables |
| |
(Wed, May 02, 3:48pm) |
| 7. |
ValidEmail( theEmail ) |
| |
(Wed, May 02, 7:27am) |
| 8. |
UltraDate (Text; LongDate_or_DateDigit) |
| |
(Wed, May 02, 6:07am) |
 |
|