CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 vlaidation rules {textbox}

Print topic Send  topic

Author Message
Mike Singleton
Posted: 04/24/2003, 12:48 PM

How would I make a textbox only accept 3 (three) alphabetic characters in CCS??
I tried vaildationrule (like "???" ) and (???) ala Access... thanks.
lukas.
Posted: 04/25/2003, 2:22 AM

you should use regular expressions. in your case, '^[a-zA-Z]{3}$' should do the job (whithout quotes).
lukas.
Mike Singleton
Posted: 04/25/2003, 5:42 AM

Error Type:
Microsoft VBScript compilation (0x800A03EA)
Syntax error
/NewProject1/TaskRecord.asp, line 272, column 8
If NOT (^[a-zA-Z]{3}$) Then
-------^
Mike Singleton
Posted: 04/25/2003, 5:58 AM

Changed the regex from Validation Rule to input rule and it worked.. so that begs the question, what is the Validation Rule used for?? Comparison against another field?

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.