Welcome Guest ( Log In | Click here to Register a free account now! )
Welcome to Bleeping Computer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.| Important Announcement: The winners of the BC Million Post contest have been announced. You can read who the winners are at this post. - BleepingComputer Management |
![]() ![]() |
Nov 25 2005, 02:28 PM
Post
#1
|
|
|
Member ![]() ![]() Group: Members Posts: 20 Joined: 18-October 05 Member No.: 37,758 |
sSalary = txtSalary.ToString Salary = Decimal.Parse(sSalary) i tired Salary = Decimal.Parse(txtSalary.ToString) no matter what i do, i keep on getting this error message at runtime "Input string was not in a correct format" i dont understand why this is happening, i dont get an error message when compling please help -------------------- Despite many reverses, freedom has won many battles. Many died in those battles in the conviction that to die in the struggle against oppression was better than to live without freedom. Such a death is the utmost assertion of their individuality. ~ Erich Fromm
|
|
|
|
Nov 29 2005, 05:09 PM
Post
#2
|
|
![]() Member ![]() ![]() Group: Members Posts: 58 Joined: 6-October 04 From: Chicago, IL Member No.: 3,390 |
Try:
CODE Salary = Decimal.Parse(txtSalary.Text)
-------------------- |
|
|
|
Dec 18 2005, 04:56 PM
Post
#3
|
|
|
Member ![]() ![]() Group: Members Posts: 20 Joined: 18-October 05 Member No.: 37,758 |
i did that and it worked! thanks!
-------------------- Despite many reverses, freedom has won many battles. Many died in those battles in the conviction that to die in the struggle against oppression was better than to live without freedom. Such a death is the utmost assertion of their individuality. ~ Erich Fromm
|
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 22nd November 2008 - 08:19 AM |