Results 1 to 2 of 2

Thread: Adding Numeric label captions together

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 1999
    Posts
    12

    Post

    My problem is that I have two labels each with captions of hh:mm:ss (e.g. 00:02:33 and 00:04:25) running on them. I wish to add these two together to get a result on a third label (e.g 00:06:58 per this example) how would I do this?, Do I need code? If so can some one help me write the answer to this example.Captions are continually updating.
    I can't thank you enough for your help -bjk

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    Try this:

    Label3.Caption = Format(CDate(Label1.Caption) + CDate(Label2.Caption), "hh:mm:ss")

    ------------------

    Serge

    Software Developer
    [email protected]
    [email protected]
    ICQ#: 51055819


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width