Results 1 to 7 of 7

Thread: [RESOLVED] Best fool-proof way to input time

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2005
    Posts
    192

    Resolved [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.

  2. #2
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    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


  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2005
    Posts
    192

    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

  4. #4
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Best fool-proof way to input time

    Why wouldnt MaskedEdit work? You may need to validate and format it yourself.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jun 2005
    Posts
    192

    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.

  6. #6
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    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"....
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  7. #7
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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
  •  



Click Here to Expand Forum to Full Width