PPRuNe Forums - View Single Post - Adding Times in VB.NET
View Single Post
Old 3rd September 2006 | 12:25
  #2 (permalink)  
BOAC
Per Ardua ad Astraeus
 
Joined: Mar 2000
Posts: 18,575
Likes: 4
From: UK
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  
Reply