Results 1 to 2 of 2
  1. #1
    Join Date
    May 2004
    Posts
    1

    Unanswered: time calculation

    hi...
    i'm used vb6.0 and microsoft access as database.
    i got input from .txt file.this input declare as string.it is time.this: 22:53:21.95 as hour:minute:second and this:00:56.57 as minute :second.my problem is.how to add this two times.1st time as start time.2nd time as duration.i want to find end time.i used odbc as connection.and my other question is.why everytime i want to convert string to integer.it will appear type mismatch?

  2. #2
    Join Date
    Feb 2004
    Location
    bangalore
    Posts
    1

    time calculation

    hi,
    u can use tyhe following method to find out end time.

    Dim StartTime, Duration, EndTime
    StartTime = CDate(Text1.Text)
    Duration = CDate(Text2.Text)
    EndTime = StartTime + Duration
    Text3.Text = EndTime

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •