I have a process that allows users to upload data in Excel file and save to database once the data have gone series of validations . Once such validat ...
I have a process that allows users to upload data in Excel file and save to database once the data have gone series of validations . Once such validat ...
I want to change the NAN result in the text label to 0. is there a solution in the recommendation?. Thanks ...
I have a string text that i want to parse/convert to DateTime, the text can have a different formats (depending on the user who write it), it can be " ...
I need to check the entered date with tryparse and, if entered correctly, return the date and add it to the student list as the student's date of birt ...
I want the first two and the last 4 characters to be numbers and the rest to remain as strings. If these conditions are not met, the license plate num ...
In C#, I'm trying to parse a string using a custom pattern. The data will always be formatted as "ddd,M/d", so I'm trying to use TryParseExact: Sho ...
I'm trying to learn how to use TryParse (am very new to programming so I'm sorry if it's a stupid question!). I would like to do so that the user can ...
I`m trying to make a try-parse in Python 3. And it workes as it should (if I enter an int it return what I entered and if I enter a string it gives an ...
I have the following code: The goal is that while the input is not a positive integer, continue to return an error. Once the input is a positive in ...
wasn't able to fix my issue through googling around so figured I'd take it here and try my luck. I'm new to c# and writing a program that randomly gen ...
I have two IntegerUpDown Controls, and I need to compare in the MouseLeave_Event , I used int.Parse but when I tried this code I got an exception: ...
I'm using C# OWIN framework for authentication and I have the TokenEndpoint override method which converts IssuedDate & ExpiresDate in the proper ...
I have a datetime string in the format "MM-dd-YY hh:mmtt". For example: 02-23-21 09:23PM. I am trying to convert this to a DateTime object in C#. I'm ...
I want to use CalcEngine library for doing math calculations in multiple textboxes. This code is a part of the whole project. Why is it give error? Th ...
How can i use double.TryParse in the above code situation inplace of Convert.ToDouble as i dont know how to use the out value for the comparison. I ...
I created this code in order to get the total sum of these values. The issue is that I have a negative value as one of the amounts and when I try t ...
The variable inputBool is declared outside of a while loop, and then set inside of a while loop when I try to parse userInput to a boolean. Once the w ...
I tried to TryParseExact of a date time string but it always does not recognize, and returns false instead. May I know where I could have possibly go ...
I am using TryParse for the code below, but when I put 1 or 2 the program doesnt continue. ...
Dear Friends, I am having a strange problem as you can see from the above example. We have an enum type and we want to make sure that enum value ex ...