IsTime not available in VB
IsDate determines if the date entered is a valid date, but there's not such thing for time. IsDate is available in VB but IsTime is not. why? could anyone develop this. seems so challenging though.
IsDate works with times, too:
Dim sTime As String
sTime = "12:19 AM"
' Prints True
sTime = "12:62 AM"
' Prints False
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
thanks for the help, but my problem is determining whether the entered time in a maskedbox is a valid time or not. the syntax is this:
If maskedbox = "__:__" Then MessageError: maskedbox.SetFocus: Exit Sub
this only traps if there is no time entered, but if the entered time is invalid, like 03:61, it won't trap and generates an error/debug.
Last edited by drchanix; 02-03-2006 at 09:23 PM.
By steve in forum Careers
Last Post: 08-08-2008, 09:46 AM
Last Post: 06-06-2008, 04:39 AM
By Jeff Johnson in forum .NET
Last Post: 01-18-2007, 07:44 AM
By Glen Kunene in forum Talk to the Editors
Last Post: 03-23-2002, 12:43 AM
By Allison Boughton in forum VB Classic
Last Post: 03-05-2001, 12:27 PM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center