View Single Post

  #2 (permalink)  
Old 06-13-2006
nmilne nmilne is offline
Junior Member
White Belt
 
Join Date: Jan 2006
Posts: 9
triptime prob

ok well i have just about converted the code above to vb.net
still got a problem with the triptime code for vb.net 2005 in vba code i set a text box to short time with a input mask 00:00;0;_ then the code
me.textbox = objmap.activemap.activeroute.triptime
say trip is 2 hours 30min this shows in the textbox 2:30

now in vb.net 2005 i do textbox.text = objroute.triptime
i get back 0.235677889 if you add the numbers up that show in the textbox they will make up to 2hours 30 min

how do i get the same result as in the vba code
can anyone help on this please
Reply With Quote