Results 1 to 3 of 3

Thread: Adding Label's after it counted text

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 1999
    Posts
    20

    Post

    Dim text97 As String, text96 As String, text95 As String
    text97 = CountCharacters(Text1)
    text96 = CountCharacters(Text2)
    text95 = CountCharacters(Formsn.Text3)
    Label27.Caption = text97
    Label14.Caption = text96
    Label2.Caption = text95
    Label14.Caption = label14.caption + text96 + text95

    When Label14.caption adds all the labels, it comes up with three diffrent numbers in label14 when I run it. How can I get it to add all three of the numbers that are in label14 to equal on number?

  2. #2
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523

    Post

    Just a suggestion: Maybe Val Function would help
    Code:
    label14.caption=val(label4)+val(text96)+val(text95)
    ------------------
    Visual Basic Programmer (at least I want to be one)
    -----------------
    PolComSoft
    You will hear a lot about it.



  3. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 1999
    Posts
    20

    Post

    Thank you QWERTY, Working great now!

    : )

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