Click here to Skip to main content
12,698,137 members (22,589 online)
Click here to Skip to main content

Stats

0 views
Posted

Input string was not in a correct format.

, 14 Feb 2013 CPOL
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 9:26 Available Sergey Alexandrovich Kryukov
Updates in content. 363 changes had been made.
1 No 14-Feb-13 9: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...

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