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
|
 |
 |
axl
|
| Posted: 02/08/2006, 5:01 AM |
|

thanks a lot, Saud
|
|
|
 |
|