Domino Code Fragment

Code Name*
field value must be at 0-9
Date*
08/29/2001
Source (or email address if you prefer)*
fidelity
IP address:.211.101.8.46
Description*
textfield 0-9
Type*
Formula
Categories*
Implementation:
None (plug and play)
Required Client:
5.1
Server:
5.1
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
this code put "input validation"


@If(fieldname="";@Success;@Contains( fieldname; "." );@Failure("error?B");@IsError(@TextToNumber(fieldname));@Failure("error?B");
@Integer(@Length(@Text(@TextToNumber("1"+@Text(fieldname)))))!=@Integer(@Integer(@Length(fieldname))+1);@Failure("error?B");
@Success)