|
-
Feb 3rd, 2011, 07:11 AM
#1
Thread Starter
Lively Member
[RESOLVED] I can't opearte a simple + command...?
This is a bit embarrassing...
I can't manage to add different values together...
My code:
Code:
TextBoxAnswer.Text = TextBox1.Text + TextBox2.Text + TextBox3.Text + TextBox4.Text
I import decimal values from my SQL Server into the TextBoxes 1-4, which works fine. But when I try to add the values together into another textbox the answer is just the values combined like a string...?
The column of the table in the SQL server has a datatype decimal(18, 2)
I have also tried to convert the values in the textboxes into int, str, double... Nothing seems to work...
Need some help here!
Example:
Answer = 2,50 + 2,50 + 5,50 + 4,50
So,
TextBoxAnswer.Text = 10,00
but, all I get is:
2,502,505,504,50
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|