Advertisement

05.20.2008 at 09:26AM PDT, ID: 23417845
[x]
Attachment Details

c# Cannot implicitly convert type 'long' to 'int'. An explicit conversion exists (are you missing a cast?)

Asked by meinhoona in C# Programming Language

Tags: Microsoft, c#,.NET2.0, 2.0

I am getting the following error during during compilation:
c# Cannot implicitly convert type 'long' to 'int'. An explicit conversion exists (are you missing a cast?)Start Free Trial
1:
int YTDBasePoints = Convert.ToInt64(dbTable.Rows[0]["YTDBasePTS"].ToString()) + Convert.ToInt64(dbTable.Rows[0]["YTDCsPTS"].ToString());
[+][-]05.20.2008 at 09:48AM PDT, ID: 21607988

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: C# Programming Language
Tags: Microsoft, c#,.NET2.0, 2.0
Sign Up Now!
Solution Provided By: molku
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.20.2008 at 09:52AM PDT, ID: 21608021

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 10:04AM PDT, ID: 21608116

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628