Hey,
I am having some difficulties converting a string which contains numbers into an integer and then dividing the number by 15 then converting the result back to a string.
I'm pretty sure I am way off and stuff but this is what I got:
The error that I am getting is: System.FormatException: Input string was not in a correct format.Code:Nums[intX]=(string)Convert.ChangeType((int)Convert.ChangeType(Nums[intX], typeof(int))/15, typeof(string));
I'm probably not using the ChangeType method properly so any help is greatly appriciated.




Reply With Quote