CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> IDE/GUI

 Text Box Validation Rule Example

Print topic Send  topic

Author Message
Graham Pearson
Posted: 07/09/2004, 5:10 AM

Does anyone have an example of a Validation Rule that would check the
input from a user who would enter a Time. All of the help that I have
found just says Expression. Would this be Regular Expression?



---

Graham Pearson, System Administrator / Web Developer

Northern Indiana Educational Services Center

56535 Magnetic Drive, Mishawaka IN 46544

http://www.niesc.k12.in.us
DonB
Posted: 07/09/2004, 5:13 PM

Nope, an "expression" is just code in the language of your project.
Validation rules simply are expressions that evaluate to true or false.
PRobably would be more clear if you just put "a"="b" in one rule and looked
for where it appears in the code file - then you'll see how it's being
utilized.

--
DonB

logging at http://www.gotodon.com/ccbth, and blogging at
http://ccbth.gotodon.net


"Graham Pearson" <gpearson@niesc.k12.in.us> wrote in message
news:ccm1vo$iue$1@news.codecharge.com...
> Does anyone have an example of a Validation Rule that would check the
> input from a user who would enter a Time. All of the help that I have
> found just says Expression. Would this be Regular Expression?
>
>
>
> ---
>
> Graham Pearson, System Administrator / Web Developer
>
> Northern Indiana Educational Services Center
>
> 56535 Magnetic Drive, Mishawaka IN 46544
>
> http://www.niesc.k12.in.us

Don Safar
Posted: 07/09/2004, 5:57 PM

You can use a regular expression. In PHP it would look something like this
if ( preg_match("/^(\-)?[0-9]{1,2}:[0-9]{1,2}(:[0-9]{1,2})?$/", $time) )
true - do something
else
false - do something

you could, of course, use two listboxes; one for hours (00-12 or 00-24) and
one for minutes (00-59)

"Graham Pearson" <gpearson@niesc.k12.in.us> wrote in message
news:ccm1vo$iue$1@news.codecharge.com...
> Does anyone have an example of a Validation Rule that would check the
> input from a user who would enter a Time. All of the help that I have
> found just says Expression. Would this be Regular Expression?
>
>
>
> ---
>
> Graham Pearson, System Administrator / Web Developer
>
> Northern Indiana Educational Services Center
>
> 56535 Magnetic Drive, Mishawaka IN 46544
>
> http://www.niesc.k12.in.us

Graham Pearson
Posted: 07/10/2004, 9:20 AM

Would the Input Validation be using RegEx for its validation. I just
discovered this on an email text box which gave me a string starting
with ^[\w\-]{1,}\@ etc.



7/9/2004 7:10:51 AM

Graham Pearson <gpearson@niesc.k12.in.us> wrote in message

<ccm1vo$iue$1@news.codecharge.com>



> Does anyone have an example of a Validation Rule that would check
the

> input from a user who would enter a Time. All of the help that I
have

> found just says Expression. Would this be Regular Expression?

>

>

>

> ---

>

> Graham Pearson, System Administrator / Web Developer

>

> Northern Indiana Educational Services Center

>

> 56535 Magnetic Drive, Mishawaka IN 46544

>

> http://www.niesc.k12.in.us

---

Graham Pearson, System Administrator / Web Developer

Northern Indiana Educational Services Center

56535 Magnetic Drive, Mishawaka IN 46544

http://www.niesc.k12.in.us

Add new topic Subscribe to topic   


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

MS Access to Web

Convert MS Access to Web.
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.