is there an easy way to compare the real time with a list of different times?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Martin123456
    New Member
    • Sep 2006
    • 1

    is there an easy way to compare the real time with a list of different times?

    Hi, yes i am new to VB6 , and i would like some help.

    i would like to compare the computer time with a list of times that i have pre stored,
    ie.
    at 14:15 goto routine
    at 14:20 goto routine
    at 14:27 goto routine
    at 14:35 goto routine
    at 14:50 goto routine

    etc

    also is there a way of making the msgbox appear at a set place on the screen?

    ie. top left, or any where other than the middle of the screen.

    thaks in advance for any help.
  • CaptainD
    New Member
    • Mar 2006
    • 135

    #2
    Originally posted by Martin123456
    Hi, yes i am new to VB6 , and i would like some help.

    i would like to compare the computer time with a list of times that i have pre stored,
    ie.
    at 14:15 goto routine
    at 14:20 goto routine
    at 14:27 goto routine
    at 14:35 goto routine
    at 14:50 goto routine

    etc

    also is there a way of making the msgbox appear at a set place on the screen?

    ie. top left, or any where other than the middle of the screen.

    thaks in advance for any help.
    Are you running a loop till the computer time matches?

    If so, I believe Format(Now, "hh:mm") will give you the computer time in the matching format.

    I don't know that you can make the message box move but you can create your own and set the position from Top and Left for the form.

    Comment

    Working...