Hi
On the line i am getting above error. Value in excel sheet is 8.4. Datatype is int. I want to ignore decimal value
leadHeader.ChildAge = Convert.ToInt32(colum[13].ToString());
Thanks
Hi
On the line i am getting above error. Value in excel sheet is 8.4. Datatype is int. I want to ignore decimal value
leadHeader.ChildAge = Convert.ToInt32(colum[13].ToString());
Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh KumarRank #91 · 22.9K reputationPosted Apr 9, 2023, 12:42 AM EDT
Can you please check colum[13]?
what values you are getting int colum[13].
If you are getting 8.4 in colum[13], then above code is correct only and it will return 8.