Results 1 to 4 of 4

Thread: dtpicker Question

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Cool

    I am using a DTPICKER for time entry, without seconds. Is there a way to limit the minutes to 15 minute intervals?

    Please help.
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  2. #2

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Cool PLEASE ? ? ?

    Can someone tell me if this can be done? I am trying to use the minute and hour properties, but must be screwing it up :

    In the click???

    DTPICKER1.MINUTE=DTPICKER1.MINUTE+15

    IF DTPICKER1.MINUTE=45 then

    DTPICKER1.HOUR=DTPICKER1.HOUR+1

    END IF

    Any ideas?
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  3. #3
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105
    You could try placing this in the change object (Sub DTPICKER1_change):

    dim nQuarters as int

    nquarters=0
    nQuarters = dtpicker1.minute \ 15
    if dtpicker1.minute=0 or dtpicker1.minute=15 or dtpicker1.minute=30 or dtpicker1.minute=45 then exit sub

    if dtpicker1.minute>44 then
    dtpicker1.minute=0
    dtpicker1.hour= dtpicker1.hour + 1
    else
    dtpicker1.minute= 15 * (nQuarters + 1)
    end if

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Talking That''s great !!!

    Exactly what I was looking for.
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

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