Any time you want to do math with text, the text must first be converted to a
numeric form. If you want to represent the numeric result as text, you need
to convert it back into a string. There is no way around this.
If you have code elsewhere to guarantee that the value in TextBox1 will
always be a positive integer, you can dispense with the call to Abs(). I
*think* that explicitly calling the ToType functions improves performance a
bit over having the conversions done implicitly. So yes, your example is
about the best you will be able to do.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.