PDA

Click to See Complete Forum and Search --> : Adding Label's after it counted text


Joe Bob
Nov 5th, 1999, 07:21 AM
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?

QWERTY
Nov 5th, 1999, 07:36 AM
Just a suggestion: Maybe Val Function would help

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.

Joe Bob
Nov 5th, 1999, 07:50 AM
Thank you QWERTY, Working great now!

: )