﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>A1VBCode Forums / Visual Basic .NET / .NET Programming (VB 2010 or earlier)  / Adding Time together / Latest Posts</title><generator>InstantForum.NET v4.1.1</generator><description>A1VBCode Forums</description><link>http://www.a1vbcode.com/vbforums/</link><webMaster>forums@a1vbcode.com</webMaster><lastBuildDate>Thu, 09 Feb 2012 04:08:10 GMT</lastBuildDate><ttl>20</ttl><item><title>Adding Time together</title><link>http://www.a1vbcode.com/vbforums/Topic23940-9-1.aspx</link><description>Hi All - Happy New Year.&lt;/P&gt;&lt;P&gt;does anyone know how to add the following values together?&lt;/P&gt;&lt;P&gt;00:00:10&lt;/P&gt;&lt;P&gt;00:10:40&lt;/P&gt;&lt;P&gt;02:40:20&lt;/P&gt;&lt;P&gt;etc..&lt;/P&gt;&lt;P&gt;basically they are timespan values written to the database indiviually and now that i recall them - i am having difficulty adding them together to get a total Value.&lt;/P&gt;&lt;P&gt;i was using this:&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Dim&lt;/FONT&gt;&lt;FONT size=2&gt; qty, price &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Decimal&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;qty = Val(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.TextBox1.Text)&lt;/P&gt;&lt;P&gt;price = Val(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.TextBox2.Text)&lt;/P&gt;&lt;P&gt;TextBox3.Text = qty * price&lt;/P&gt;&lt;P&gt;the problem occurs with the ":" - but i cannot figure a way around it.&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Sun, 13 Jan 2008 17:27:33 GMT</pubDate><dc:creator>Poy</dc:creator></item></channel></rss>
