lino_evolution
asked on
how do check if the item is outside of the arrray...C# equivalent of this code
I am using Dundas Charts and depending on what is returned from the database it checks to see if a data point exists.
so what is the C# equivalent of the following vb code.. in C# I need to test if Chart1.Series(0).Points(6)
right now I have this
if(!Chart1.Series[0].Point
{
Chart1.Series[0].Points[6]
}
but I am getting
System.ArgumentOutOfRangeE
I know it is out of range but I need to check for it because sometimes it is not out of range.
this code works in VB.
If Not Chart1.Series(0).Points(6)
Chart1.Series(0).Points(6)
End If
any help is greatly appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Chart1.Series[0].Count