help me how to display the answers in a calculator in vb 6.0 i'm just a student help!:confused:
Printable View
help me how to display the answers in a calculator in vb 6.0 i'm just a student help!:confused:
help me how to display the answers in a calculator in vb 6.0 i'm just a student help! i used this codes but it won't work:
Private Sub Command11_Click()
b = Text1.Text
Select Case d%
Case 1: sum = a + b
Text2.Text = Str(sum)
Case 2: sum = a - b
Text2.Text = Str(sum)
Case 3: sum = a * b
Text2.Text = Str(sum)
Case 4: sum = a / b
Text2.Text = Str(sum)
End Select
End Sub:confused:
The above line should be written like this:Code:b = Text1.Text
Code:b = val(Text1.Text)
If that didn't helped you in solving, then post your project...:)
to anyone who is listening:
is vb6 able to be installed on xp, and if it is, why won't it install on the xp I am using. What do I have to do to get it to install. I have already tried two programs from the vb6 site that are supposed to help it setup. The original problem was that even though I was using the original vb6 cd to install the program onto the computer, it would only install a bunch of text files onto the hard drive, nothing useful. I orginally installed the program on my windows 98 computer. It didn't have a problem there. I don't know what went wrong on the xp.
can someone help me?
There is no problem for installing vb6 in xp machine. I am having it installed in my xp machine. No problems yet...:)
I have it installed on both an XP machine and also on a Vista machine. It works on each.
What's the message you get after installing the program?? (any errors..??)Quote:
to anyone who is listening:
is vb6 able to be installed on xp, and if it is, why won't it install on the xp I am using. What do I have to do to get it to install. I have already tried two programs from the vb6 site that are supposed to help it setup. The original problem was that even though I was using the original vb6 cd to install the program onto the computer, it would only install a bunch of text files onto the hard drive, nothing useful. I orginally installed the program on my windows 98 computer. It didn't have a problem there. I don't know what went wrong on the xp.
can someone help me?
Are you able to complete the setup successfully or not..??
madscientist: you just hijacked this thread.... please post new threads for your own questions. And as the others said, I also have VB6 on XP with no problems at all.
rainjoyce: what is d%? I think you meant to put the "b" variable there. and as akhileshbc said, you need to use Val(Text1.Text)