Visual Basic Addition Script

March 11, 2012 at 01:45:22
Specs: Windows XP
hi i'm currently learning basic of Visual Basic and im making a sample script of addition which works..but i need to concatenate some data with the output..for eg Im trying to add two no's

and text 2.text=3

So in text3.text i need the following output

The numbers are
1 and 3
The Output is

Im using a command button
text3.text = val(text1.text) + val(text2.text)

help out guys

See More: Visual Basic Addition Script

Report •

March 11, 2012 at 05:54:44
You don't specify which version of VB you're using (there's half a dozen or so), but not all of them don't have a "val()" function.

How To Ask Questions The Smart Way

Report •

March 12, 2012 at 06:23:14
Im using Visual Basic 6.0

Report •

March 12, 2012 at 17:01:42
I don't use VB6, but that line looks legal. What happens when you try? Do you get an error? What error?

How To Ask Questions The Smart Way

Report •
Related Solutions

Ask Question