Click here to Skip to main content
13,511,647 members
Click here to Skip to main content


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...



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


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


About the Author

Sergey Alexandrovich Kryukov
United States United States
No Biography provided

You may also be interested in...

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