text.ValidateCharacters ( Text ; Values )
Rate this function: Average rating: 5.0 (1 vote) Discuss this Custom Function
Rob Poelking, N/A
http://photosbyrobonline.com
Validate input characters
Sample Input:
| text.ValidateCharacters ( "A01-BSD" ; "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ -" ) |
|
Sample Output:
|
Description:
Validates text against a given string of acceptable values.
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:Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:
|
Newest Custom Functions:
| 1. |
MaxLength ( field, foundCnt ) |
| |
(Thu, Jul 29, 4:37pm) |
| 2. |
DayCounter ( Date_Start ; Date_End; Days_of_Week ) |
| |
(Wed, Jul 28, 1:20pm) |
| 3. |
Is_FM_Go_iPad |
| |
(Fri, Jul 23, 7:55am) |
| 4. |
Is_FM_Go |
| |
(Fri, Jul 23, 7:54am) |
| 5. |
IsFilled ( field ) |
| |
(Wed, Jul 21, 7:19am) |
| 6. |
DateQuarterAsRange ( theDate ) |
| |
(Thu, Jul 15, 5:37pm) |
| 7. |
DateQuarterEnd ( theDate ) |
| |
(Thu, Jul 15, 5:35pm) |
| 8. |
DateQuarterBegin ( theDate ) |
| |
(Thu, Jul 15, 5:30pm) |
 |
|
Rob:
Three comments:
1) Entitle a custom function with parameters in the title
2) The parameters do not have to be dimensioned to themselves in the body of the function. They are there to be used any time they are specifically called.
3) The function can be re-written to a simple boolean calculation per below...
hth,
Bart
----------------------------------------
/*
Nam e: text.ValidateCharacters
Parameters: Text ; Values
Function:
*/
Length( Filter ( text ; values) ) = Length ( text )
/* Notes: 2010.02.16 - Rob Poelking
rob@ohiokajukenbo.com
Validates text against a given string of acceptable values. */
Bart Bartholomay, Vero Beach, FL
February 16, 2010 11:29am