CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 time validation

Print topic Send  topic

Author Message
axl
Posted: 02/07/2006, 8:30 AM

hi
i am new using codecharge.
how to validate a textbox that must receive a time value??

thanks
Saud

Posts: 15
Posted: 02/07/2006, 3:03 PM

In the OnValidate Event, you can test the submitted value for the textbox with the following function:

  
If IsTime(RecordForm.TimeTextbox.Value) Then  
' pass  
else  
' error : you can add error message here  
end if  

and the IsTime Function is:

  
Function IsTime(sTime)  
        IsTime = IsDate(Date & " " & sTime)  
End Function  
View profile  Send private message
axl
Posted: 02/08/2006, 5:01 AM

:-)
thanks a lot, Saud

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.