Click here to Skip to main content
13,193,468 members (57,636 online)
Click here to Skip to main content

Stats

0 views
Posted 14 Feb 2013

Input string was not in a correct format.

Instead of Convert (bad word, in this case!), use Decimal.TryParse or Decimal.Parse. It won't improve your code much, but TryParse will help you to avoid exception (but there is nothing wrong with exceptions). More importantly, you will understand better what you are doing. You are parsing, not...

Revisions


  

Compare Revision Minor Date Status Editor
2 - publicly available No 14-Feb-13 13:26 Available Sergey Alexandrovich Kryukov
Updates in content. 363 changes had been made.
1 No 14-Feb-13 13:03 Available Sergey Alexandrovich Kryukov

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Sergey Alexandrovich Kryukov
Architect
United States United States
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.171018.2 | Last Updated 14 Feb 2013
Article Copyright 2013 by Sergey Alexandrovich Kryukov
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid