#1
So I have these two textboxes, named txtgpa1.Text and txtgpa2.Text, I've left their text value blank, and i want then to add up or * or subtract, whatever it may be to display when the user hits calculate. I when I run the program and i enter 2 for txtgpa1.Text and 2 for txtgpa2.Text to add, i get 22, instead 4. what the heck I'm i doing wrong? txtgap1.Text + txtgp2.Text and the answer is 22, not 4! F U C K!!!!
LOL
#2
kill yourself
Quote by diofan88
I lol'd hard


Quote by tattyreagh
That's terrible and hilarious in equal measures...



theyre talking about my comment
#4
What are you doing that in, Visual Basic?
UG POKER!
Quote by WyvernOmega

TL;DR: Saw a girl at Wal-Mart, she started feeling me up, I jizzed in my pants.

Shit, I'm so pathetic.

[quote="'[BurnTheDusk"]']I agree, tone does sound better the closer your genitals are to the ground.

Crabcore?

UNACCEPTABLE
#5
Quote by P-Bass Pirate
What are you doing that in, Visual Basic?

yeah
LOL
#6
An addition operation on two strings performs concatenation ("a" + "b" = "ab"). You need to convert the text to integers first using the Integer.Parse function if you're using VB.net, or CInt if you're using VB6.
#7
I think it's getting the wrong answer because you are trying to calculate text values. Maybe if you convert them to numeric values it would work. I dunno for sure though, I haven't done basic for a long time.

Edit: God Dammit^^
#8
i would set the boxes to int values and then add them, then output them into you label? maybe
#11
Dim decbtngpa = txtgpa.Text + txtgpa1.Text / 3

so how do i phrase the text boxes to equal integers.
LOL
#12
Quote by SiKh22
Dim decbtngpa = txtgpa.Text + txtgpa1.Text / 3

so how do i phrase the text boxes to equal integers.

In VB, it's something like Int(txtgpa.Text) or txtgpa.Text.ToInt()

[IN PHIL WE TRUST]


Quote by Trowzaa
I only play bots. Bots never abandon me. (´・ω・`)

#13
01 PRINT "Huhloh. Duh."
02 GOTO 01
funkyducky


Icing happen when de puck come down, BANG, you know,
before de oder guys, nobody dere, you know.
My arm go comme ça, den de game stop den start up.

Quote by daytripper75
Get To Da Choppa!