No announcements
Found 1465081 threads
-
0 Votes
Input string was not in a correct format.
If we modify your code to actually be valid then we'd come up with this: void SomeFunction ( ) { string str1 = ...Answered | 7 Replies | 5611 Views | Created by luckyforu2006 - Thursday, January 20, 2011 2:26 PM | Last reply by Leo Liu - MSFT - Wednesday, January 26, 2011 9:14 AM -
4 Votes
Input string was not in a correct format ???
As for: "When converting a string to a DateTime, parse the string to take the date before putting each variable into the DateTime object.Answered | 21 Replies | 21568 Views | Created by Rob Vig - Monday, December 17, 2012 3:07 AM | Last reply by JayB66 - Wednesday, August 6, 2014 2:20 PM -
5 Votes
'Input string was not in a correct format.'
string was not in a correct format.'Answered | 6 Replies | 4017 Views | Created by IulianG06 - Sunday, March 31, 2019 2:22 PM | Last reply by Ed Price - MSFT - Wednesday, April 3, 2019 9:59 PM -
2 Votes
Input string was not in a correct format -Problem
You never do any array resizing or bounds checking, so it's quite likely that the array you have provided is not the correct length.Answered | 13 Replies | 13518 Views | Created by jsanch16 - Tuesday, February 14, 2012 7:21 PM | Last reply by Dummy yoyo - Monday, February 27, 2012 9:17 AM -
0 Votes
Input string was not in a correct format?
I'm guessing this subcat field is string datatype.Answered | 1 Replies | 4403 Views | Created by dbaf - Friday, September 4, 2009 7:59 PM | Last reply by Isham H - Friday, September 4, 2009 8:08 PM -
0 Votes
Input string not in correct format.
I would use TryParse because the above code would fail if laborExtPrice has string with spaces like " " or has aplhabet in it like "a0123".Answered | 3 Replies | 3356 Views | Created by mexl - Tuesday, April 27, 2010 2:51 PM | Last reply by HamAndFig - Tuesday, April 27, 2010 9:43 PM -
0 Votes
Input string was not in a correct format.
The error pretty much says what is happening, some of your strings are empty strings("") which it can't convert to an integer or double.Answered | 2 Replies | 3809 Views | Created by Murali PM - Monday, January 12, 2015 11:36 AM | Last reply by Rbie - Monday, January 12, 2015 11:53 AM -
0 Votes
Input string was not a correct format.
Also, I recommend that you use parameters instead of concatenating a SQL string.Answered | 3 Replies | 3735 Views | Created by Shailendra R Kumar - Monday, August 8, 2011 5:40 PM | Last reply by Anthony Trudeau - Monday, August 8, 2011 7:04 PM -
3 Votes
input string not in a correct format
string AllData = myReader.ReadToEnd(); ...Answered | 13 Replies | 5153 Views | Created by jasius - Wednesday, November 2, 2011 3:17 AM | Last reply by Malobukv - Friday, November 4, 2011 1:29 PM -
2 Votes
C#-input string not in correct format
And moving the double to below on the payment definition gives me the same "input string not in correct format" message after running...Any other ideas?Answered | 3 Replies | 7251 Views | Created by goose6180 - Saturday, February 21, 2009 3:38 AM | Last reply by goose6180 - Saturday, February 21, 2009 4:41 PM -
0 Votes
Input string was not in a correct format C#
The function you show above I'm assuming will trunctate the input string so that it become 0,1,0.Answered | 5 Replies | 32152 Views | Created by DSabol - Friday, December 30, 2011 1:35 PM | Last reply by Min Zhu - Wednesday, January 4, 2012 2:17 AM -
0 Votes
Input string was not in a correct format.
Having no value in the cell will cause Decimal.Parse to give the "Input string was not in a correct format" error.Answered | 15 Replies | 3735 Views | Created by Akshat Anil - Monday, August 1, 2011 3:56 PM | Last reply by Blackwood - Monday, August 1, 2011 5:03 PM -
1 Votes
Input String was not in correct format
Equals("") ) You're comparing the textbox itself with a string, that will always return false and as a result the else branch will be executed even if ...Answered | 3 Replies | 1687 Views | Created by Khaqan Raza - Thursday, November 1, 2012 5:40 AM | Last reply by Khaqan Raza - Saturday, March 9, 2013 10:48 AM -
1 Votes
Input string was not in the correct format
Please don't correct the names of my Integers unless they are causing a problem with the code.Answered | 3 Replies | 2464 Views | Created by Notapipe - Tuesday, October 25, 2011 2:46 AM | Last reply by Noam B - Tuesday, October 25, 2011 8:53 AM -
4 Votes
input string was not in a correct format
I insert input data and click the save button it shows me this from "catch" block.I can't figure out which line has the problem from "try" block.I use your DOB ...Answered | 12 Replies | 1219 Views | Created by arov90 - Sunday, May 24, 2015 12:36 PM | Last reply by arov90 - Monday, May 25, 2015 8:23 PM -
0 Votes
input string was not in a correct format.
The .Text property of a textbox contains a String.Answered | 5 Replies | 4714 Views | Created by Sunil.Bablani - Monday, June 4, 2012 1:43 PM | Last reply by Sunil.Bablani - Tuesday, June 5, 2012 2:53 PM -
0 Votes
Input string was not in correct format
So I don't think so there will be a "AM" or "PM" in the string.Answered | 2 Replies | 4800 Views | Created by seeker55 - Friday, April 1, 2011 4:36 PM | Last reply by Mike Dos Zhang - Friday, April 8, 2011 10:30 AM -
2 Votes
Error : Input string was not in correct format
The reason you receive those errors is because when you try to parse empty string into number, converter has no idea what to do with it.Answered | 5 Replies | 7927 Views | Created by tamilan2233 - Monday, February 21, 2011 10:34 AM | Last reply by VMazur - Wednesday, February 23, 2011 11:48 PM -
0 Votes
int.Parse > Input string was not in a correct format.
Even int.Parse("1.00") will throw a number format exception.Answered | 4 Replies | 12381 Views | Created by PatrickRoth - Tuesday, October 12, 2010 7:10 PM | Last reply by Mike Dos Zhang - Thursday, October 14, 2010 7:41 AM -
2 Votes
Input string was not in a correct format.
I hope here is format not mathing Do it same type Thanks Please mark the post answered your question as the answer, and mark other helpful posts ...Answered | 6 Replies | 3272 Views | Created by Vamp10988 - Saturday, July 9, 2011 8:26 PM | Last reply by Mitja Bonca - Monday, July 11, 2011 3:25 PM
No announcements