PPRuNe Forums - View Single Post - Adding Times in VB.NET
View Single Post
Old 3rd Sep 2006, 12:25
  #2 (permalink)  
BOAC
Per Ardua ad Astraeus
 
Join Date: Mar 2000
Location: UK
Posts: 18,579
Likes: 0
Received 0 Likes on 0 Posts
Cannot help with VB code, but generally it goes:

'If LabelY>X then LabelY=LabelY-X'

In the case of hours, X=24. You'll need to split the minutes out as well (maybe use 'INT' or 'Left/RightString' depending on how VB codes) and then X will be 60. They need adding back in at the end. Might be easier just to work in minutes until the end?

Getting the 'zeroes' in front of the numbers is a whole new ball game....................
BOAC is offline