K Ksmith1192 Member Licensed User Longtime User Aug 12, 2013 #1 Hi Guys, I have this program that has two doubles declared "rightside" and "leftside" They are only numbers, and I want them to be listed as (if left = 1 and right = 4) 1-4. So I try to put in this line of code Resultslbl.Text = LeftSide + "-" + RightSide It errors every time. So how do I get it to show the text with the Leftside number with a - inbetween the Rightside number? Thanks guys!
Hi Guys, I have this program that has two doubles declared "rightside" and "leftside" They are only numbers, and I want them to be listed as (if left = 1 and right = 4) 1-4. So I try to put in this line of code Resultslbl.Text = LeftSide + "-" + RightSide It errors every time. So how do I get it to show the text with the Leftside number with a - inbetween the Rightside number? Thanks guys!
S skaliwag Member Licensed User Longtime User Aug 12, 2013 #2 To add strings together you use the '&' sign not the '+' sign. So you should try Resultslbl.Text = LeftSide & "-" & RightSide Upvote 0
To add strings together you use the '&' sign not the '+' sign. So you should try Resultslbl.Text = LeftSide & "-" & RightSide