If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > time calculation

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-11-04, 23:10
patin25 patin25 is offline
Registered User
 
Join Date: May 2004
Posts: 1
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?
Reply With Quote
  #2 (permalink)  
Old 05-13-04, 06:02
gopinath_alr gopinath_alr is offline
Registered User
 
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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On