Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact
A1VBCode Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      

Home » .NET Programming » Visual Basic .NET » Adding Time together


Adding Time togetherExpand / Collapse
Author
Message
Posted 1/13/2008 5:27:33 PM


Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 2/4/2010 8:20:41 AM
Posts: 74, Visits: 168
Hi All - Happy New Year.

does anyone know how to add the following values together?

00:00:10

00:10:40

02:40:20

etc..

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.

i was using this:

Dim qty, price As Decimal

qty = Val(Me.TextBox1.Text)

price = Val(Me.TextBox2.Text)

TextBox3.Text = qty * price

the problem occurs with the ":" - but i cannot figure a way around it.



Thanks

  Poy

New To Vb.net - so a little Naive!

Post #23940
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Admin, Mod

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 4:26pm