|
-
Jul 8th, 2005, 10:35 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Best fool-proof way to input time
Alright guys. I want a full proof way to enter time. I am using a mysql database, which *can* accept a time stamp. Don't know if VB supports it natively. I would like a simple user interface to assign a start time/end time. Which could in theory be military or standard 12 hour. If military (I've already created a converter which doesnt work right). I've tried masked edit, but I need something that will just work. Something that doesn't require pages of API calls and what not. Thanks a lot for the help.
-
Jul 8th, 2005, 10:39 PM
#2
Fanatic Member
Re: Best fool-proof way to input time
Enter what type of time? Is it user defined (does the user enter it)? Do you just want a method to enter a time that exists, such that it rejects something like 25:61:61 ?
In other words, I don't understand what you want.
Visual Basic 6.0
Visual C++ 5
Delphi 5

-
Jul 8th, 2005, 10:42 PM
#3
Thread Starter
Addicted Member
Re: Best fool-proof way to input time
It is through a GUI. The user inputs the time, sorry for not being specific.
also just to the nearest minute, so no seconds at all.
Thanks for the quick response
-
Jul 8th, 2005, 10:44 PM
#4
Re: Best fool-proof way to input time
Why wouldnt MaskedEdit work? You may need to validate and format it yourself.
-
Jul 8th, 2005, 10:51 PM
#5
Thread Starter
Addicted Member
Re: Best fool-proof way to input time
dee-u. So your saying take the validation, and check if it meets a criteria, if so go ahead and use it. If so. I will do that. I just wanted to infer about this. So basically this is Resolved. Thanks.
-
Jul 8th, 2005, 11:00 PM
#6
Re: [RESOLVED] Best fool-proof way to input time
Yap, when we want to fool-proof some data then we have to validate it ourselves. I did noticed you said "full proof"....
-
Jul 8th, 2005, 11:24 PM
#7
Re: [RESOLVED] Best fool-proof way to input time
If you want a GUI, use the Date-Time Picker. Sorry I was late...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|