how do i convert a string of “001” to an int 001? using Convert.ToInt32() method or Int32.Parse() method gives the result as only 1
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1 is an integer, 001 is a string. If you are trying to display a 3-digit series as an id or similar and are incrementing you will need to convert your string “001” to an integer, increment it, then convert it back to a “0” padded string for display.