Code - Custom Function

text.ValidateCharacters ( Text ; Values )

BrianDunning.com, Brian Dunning http://www.briandunning.com/filemaker-custom-functions/list.php


text.ValidateCharacters ( Text ; Values )
Rate this function: Average rating: 0.0 (0 votes) Discuss this Custom FunctionRob Poelking, N/A
http://photosbyrobonline.com
Validate input characters
==================== SAMPLE INPUT AND OUTPUT ====================
INPUT
text.ValidateCharacters ( "A01-BSD" ; "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ -" )
OUTPUT
1
==================== DESCRIPTION ====================
Validates text against a given string of acceptable values.
==================== CUSTOM FUNCTION ====================

/*

Name: text.ValidateCharacters ( Text ; Values )

Function:

*/

Let(

[

text = text ;

values = values ;

check = Filter ( text ; values);

valid = Length( check ) = LENGTH ( text )

];

valid

)

/* Notes: 2010.02.16 - Rob Poelking

rob@ohiokajukenbo.com



Validates text against a given string of acceptable values. */


Referring URL: 'http://www.briandunning.com/cf/1120'

Attached File:    

Screenshot:    


Keywords: ''

ClipManager: