quick vb question

markjrubin

Golden Member
Jan 17, 2000
1,419
0
0
I'm working on a calculator for class and I'm a little stuck on the +/- button (turn number to negative if positive, turn to positive if negative). Is there a numerical function to do this or will I have to do it with string manipulation?

Mark
 

coder1

Senior member
Jul 29, 2000
433
0
0
Don't use a string, keep it numeric. I would make a little function that takes the value and doubles it and then subtracts it from it self. And then vise versa