|
|
![]() |
| Thread Tools | Search this Thread |
#1
| |||
| |||
How to use Textbox values for calculations How do you retrieve values in a TextBox to make calculations? If I am not mistaken, if you retrieve a value from a TextBox then these values are characters/string? |
#2
| |||
| |||
Re: How to use Textbox values for calculations Convert Textbox's value into the integer. I know about C language and in that atoi is expected to do this. However I doubt about your application. |
#3
| |||
| |||
Re: How to use Textbox values for calculations But when I do: Code: int x = 3 * (int)TextBox1.Text; Quote:
|
#4
| |||
| |||
Re: How to use Textbox values for calculations I suppose you are using C# which is more like Java. If I am correct than there is a constructor "new Integer (String)" or a static method in class "Integer" that you can use to convert String value to Integer value. |
#5
| |||
| |||
Re: How to use Textbox values for calculations Hey I got the solution. Thanks sergioKomic, it reminds me this: Code: int x = Convert.ToInt32 (TextBox1.Text); |
![]() |
|
Tags: calculation, textbox |
Thread Tools | Search this Thread |
|
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Where does most of the calculations done in the computer take place? | Muskil | Off Topic Chat | 3 | 02-01-2012 10:39 PM |
W32 registry values are not getting matched by the default values | Angrzej | Networking & Security | 5 | 19-05-2011 12:23 PM |
Excel/VBA: Copying text from UserForm Textbox to a Worksheet Textbox | Neil Ives | Software Development | 2 | 20-08-2010 01:23 AM |
VBScript to get textbox values | Jesus2 | Software Development | 5 | 17-12-2009 06:25 AM |
To speed up calculations on a Worksheet | Bankebihari | Windows Software | 3 | 10-04-2009 12:07 PM |